[wp-trac] [WordPress Trac] #10614: category-{slug}.php template
WordPress Trac
wp-trac at lists.automattic.com
Fri Aug 14 13:38:10 UTC 2009
#10614: category-{slug}.php template
-------------------------+--------------------------------------------------
Reporter: scribu | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.9
Component: Template | Version: 2.9
Severity: normal | Keywords: needs-patch
-------------------------+--------------------------------------------------
If a user needs to style a particular category differently, he can either
use conditional code inside the category.php template, or make a
category-{id}.php template.
The problem with the later is that when applying the theme to a different
site, the category id will have likely changed.
That's why we need to use the category slug instead, so a theme can have
something like this:
* category.php
* category-projects.php
* category-announcements.php
etc.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10614>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list