[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 11:52:56 UTC 2010
#13100: category template matches ancestor category, single post matches category
filename
-----------------------------+----------------------------------------------
Reporter: jredfern | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Template | Version:
Severity: normal | Keywords: template selection
-----------------------------+----------------------------------------------
Dear wordpress developers,
There's two features which I think would be very useful in the wordpress
template selection process. The first relates to categories - currently a
category template file will be selected when the category of the selected
post matches the filename of the template (category-catfoo.php). Because
categories are hierarchichal (can be sub-categories) I suggest that if it
can't find a template for the current category it should also also try to
match ancestor template files.
The other feature which I suggest would be useful, is single post template
matching using category names. For example, single-catfoo.php. This could
also match on ancestor categories if none is found immediately (single-
catrootfoo.php).
Best wishes,
Jim Redfern
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13100>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list