In this article we given full steps and code for How to set different layout for each category in WordPress. Which you need to use in your wordpress theme.
How to set different layout for each category in WordPress
Using following code you can able to set different layout for each category.
Just create the category.php file or already existed then open that file and use following code in that file.
<?php if (is_category(10)) { // looking for category 10 posts include(TEMPLATEPATH . '/layout2.php'); // or you can use “get_cat_id(’category_name’)” instead of category id } else { // put this on every other category post include(TEMPLATEPATH . '/layout1.php'); } ?>
Here we are calling the layout 2 for category 10.
Have fun!
This is very old technique for using the different layout or design for wordpress category. But still this trick is working great.