Yes you can do that. You just have to make separate tempates for any categories which you want to be different.
http://codex.wordpress.org/Category_Templates
Thread Starter
kt83
(@kt83)
Thanks, Numeeja. I think there’s a gap between what I know and what the article talks about.
So when I create a new category, how do I choose which template to apply to it? I don’t see that option…
Thread Starter
kt83
(@kt83)
Batrachoid, I read and reread that part, but I still can’t figure out how to apply a category to a specific template. In the admin GUI, when I create a new category, there’s no option to apply a template to it.
Sure I can create “category-6.php” but where and how do I specify its use?
“So, if you want to make the Category whose ID number is 6 look different from what it is currently (and different from other Category pages), you would want to create a category-6.php file.”
I wasn’t aware that categories had ID numbers, only slugs.
Go to posts -> categories
When you hover over a category name you should be able to read its numerical ID in the bar at the bottom of the browser.
if not it is displayed in the address bar when you click the link. Once you have the ID for the category, create your custom template with the appropriate name and WordPress will use it.
kt83,
You don’t have to apply a template to a category, just create a file with the appropriate name, as described above, and WP will use it.
Thread Starter
kt83
(@kt83)
ok, thanks a lot for all your help
Thread Starter
kt83
(@kt83)
in which folder do I create the category-6.php file? I use customized templates
Thread Starter
kt83
(@kt83)
Ok, I’ve got the category thing figured out. Thanks.
Now, how do I edit the homepage so that previews of articles from category-6 look different from previews of articles from the default categories? I’m talking about the homepage where the most recent articles are previewed.
for example: for category-6 articles, I want a date to appear right under the title, but not for other categories.
Thread Starter
kt83
(@kt83)
So I’ve now customized categories, can I customize the articles in those categories?