[wp-trac] [WordPress Trac] #13100: category template matches ancestor category, single post matches category filename

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 24 12:19:12 UTC 2010


#13100: category template matches ancestor category, single post matches category
filename
-----------------------------+----------------------------------------------
 Reporter:  jredfern         |       Owner:                    
     Type:  feature request  |      Status:  new               
 Priority:  normal           |   Milestone:  Future Release    
Component:  Template         |     Version:                    
 Severity:  normal           |    Keywords:  template selection
-----------------------------+----------------------------------------------

Comment(by scribu):

 I was able to achieve both types of matches using a few lines of code.

 1) ancestor category template: This could cause significant overhead if
 you have deep nested categories.

 2) single-cat template: This could cause unexpected results when a post is
 in multiple categories.

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


More information about the wp-trac mailing list