I have two categories that need a special template. Each has one post and will display differently. So I read that if the category is named, for example, 'testing' and the template name is 'testing.php' then it should use that correct? Why would it not? I keep previewing the post and it just redirects to the home page.
A:
What version of WordPress are you running. WordPress 3.0 is new and will support what you want out of the box as you described.
Jason McCreary
2010-06-26 03:17:17
It is 2.9.2 Cant upgrade it either, not my site..
thatryan
2010-06-26 04:00:11
Running 2.9.2, you can use `category-CAT_SLUG.php`
TheDeadMedic
2010-06-26 10:32:08
+2
A:
Category templates, which your version of WordPress has, can do it.
dj_segfault
2010-06-26 04:41:14
+2
A:
Naming the template testing.php
won't work. You need to use either a slug or ID of your category, so either category-testing.php
or category-ID.php
if you know the ID of category (ie. you're not making a theme for release and your IDs are constant).
Justine
2010-06-26 11:28:43