Specific template for child categories
-
Hello,
I’m trying to do this kind of a set up:
If this category is a child of ‘category x’ use ‘template-x’, otherwise use the default template.
I’ve looked at is_category, and is_ancestor() for reference, but am not sure how to utilize them for this specific purpose (is_cateogry has served me well in the past). Can someone offer some suggestions? The big thing is that I don’t want to manually update an array of categories. Just a simple: if the user makes a category and its the child of X, use X to display it.
Thank You.
Nadine.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Specific template for child categories’ is closed to new replies.