Get sub-category to use its parent category template
-
Hello,
I’m having trouble dealing with sub-categories templates. Right now, for diferent category IDs, I use different template files, such as category-1.php, category-2.php, category-3.php, and so on. That works fine.But when displaying posts from a sub-category, WordPress go straight to category.php template file. All I need is a way to make WordPress choose the parent category template file when displaying its sub-categories and all future new sub-categories to be created.
Example: Make all sub-categories of category ID 3 to use the category-3.php template, and NOT category.php template.
Can anyone help me? ??
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Get sub-category to use its parent category template’ is closed to new replies.