I have been trying to find a solution to this problem since the last 12 hours but didn't get a success.
QUESTION: How can I get a different/seperate template for a category and for all the sub-categories under that category?
For example:
- I have CATEGORY 1. Under that Category I have SUB-CATEGORY 1, SUB-CATEGORY 2 and several other sub-categories.
- Now I need to have a sperate template for Category 1 and for SUB-CATEGORY 1, SUB-CATEGORY 2 and other sub-categories..
Is there an hack or a way to do that? I tried using an if statement in the category-category1.php (tcategory template file) to check if it has subcategories or something.but don't know how to divert it to the other tempalte after that.
Can someone please help?