I'm using the Default Post Type post
for various purposes. To sort them I'm using different categories. And I'm designing different category layout using the slug preference, like: category-book.php
, category-notice.php
etc., and everything was just fine.
But just a moment ago found that, any subcategory of the parent category 'book' is redirecting to index.php
(or archive.php
, or category.php
) because they are not recognizing their parent's category template (category-book.php
), because their slug is different.
How can I make the child categories recognize their parent's template design?
Do I have to make a custom template using a WP_Query()
for that?