Categories & separate sub category templates
-
Hi all,
I’m currently making a magazine style site with customised templates. I’ve run into a problem regarding the category > sub-category templates.
I have two different parent categories which then have a number of sub-categories beneath them. For example –
Parent Category 1 >
Sub Category 1 > Posts
Sub Category 2 > PostsParent Category 2 >
Sub Category 1 > Posts
Sub Category 2 > PostsI would like to have one template for the parent categories (which outputs links to the sub-categories), this I’ve managed to achieve. What I can’t figure out is how to have a separate template which allows me to display the posts within that specific sub-category. Whilst I realise you can name a template category-slug/id.php I would like just one sub-category template that can be used across all the sub categories. I’m really not sure about how to go about doing this, even after reading the Codex and relentless Googling.
- The topic ‘Categories & separate sub category templates’ is closed to new replies.