[wp-trac] Re: [WordPress Trac] #7086: Look for Template Files in Stylesheet Directory First

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 3 19:38:54 GMT 2008


#7086: Look for Template Files in Stylesheet Directory First
-------------------------+--------------------------------------------------
 Reporter:  ThemeShaper  |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.7      
Component:  General      |      Version:           
 Severity:  normal       |   Resolution:           
 Keywords:  needs-patch  |  
-------------------------+--------------------------------------------------
Changes (by ionfish):

  * keywords:  => needs-patch

Comment:

 The category template can exist in two forms: a generic category.php file,
 and a category-$cat_id.php file. A number of other template calls follow
 the same pattern. What should the order of precedence be?

 The child theme's category-$cat_id.php should clearly be looked for first,
 and the parent theme's category.php file last. However, it is not obvious
 which of the other two variations should take precedence over the other:
 the child theme's generic category.php file, or the parent theme's
 specific category-$cat_id.php file. My preference would be for the latter,
 but there may be dissenting views.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7086#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list