Ticket #20867: 20867.2.patch
File 20867.2.patch, 541 bytes (added by , 12 years ago) |
---|
-
wp-includes/template.php
59 59 * @return string 60 60 */ 61 61 function get_archive_template() { 62 $post_type = get_query_var( 'post_type' );62 $post_types = get_query_var( 'post_type' ); 63 63 64 64 $templates = array(); 65 65 66 if ($post_type )66 foreach ( (array) $post_types as $post_type ) 67 67 $templates[] = "archive-{$post_type}.php"; 68 68 $templates[] = 'archive.php'; 69 69