[wp-trac] [WordPress Trac] #13691: Make get_template_part() accept multiple template names

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 2 03:19:34 UTC 2010


#13691: Make get_template_part() accept multiple template names
-------------------------+--------------------------------------------------
 Reporter:  wjm          |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  General      |     Version:            
 Severity:  normal       |    Keywords:            
-------------------------+--------------------------------------------------
 This enhancement allows get_template_part() allows to pass several
 template names, to work in the same way as: locate_template()

 so, you could call,

 get_template_part( 'loop', array('category', 'taxonomy', 'archive') );


 $names are passed by order of priority.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13691>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list