[wp-trac] [WordPress Trac] #22956: Unpredictable template loading when multiple post types are involved

WordPress Trac noreply at wordpress.org
Sat Dec 29 07:56:38 UTC 2012


#22956: Unpredictable template loading when multiple post types are involved
------------------------------+--------------------
 Reporter:  scribu            |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.5.1
Component:  Post Types        |     Version:  3.5
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+--------------------

Comment (by wonderboymusic):

 this is like doing a WP_Query with 'any' and then loading the archive for
 the post_type of the first item. That choice is arbitrary. You might as
 well pick a random post from the collection and load that archive.
 <IMO>`archive.php` is the correct template</IMO>. `archive-Array` and
 `archive-.php` both result in `archive.php` being chosen, so why switch to
 loading `archive-you-pick.php`?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22956#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list