Opened 16 years ago
Closed 16 years ago
#10614 closed enhancement (fixed)
category-{slug}.php template
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.9 | Priority: | normal |
Severity: | normal | Version: | 2.9 |
Component: | Template | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Reviewing this now.