Apply custom category template to subcategories


Hello on my wordpress site I have a custom template for category A with slug (cat-a). I created a category-cat-a.php file to give this category a custom layout and this works without a problem.

I am wondering is there any easy way to apply this same layout to all subcategories of A (I don’t really want to have to create a custom template for every subcategory asthere is a lot)?


>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="">

Apply custom category template to subcategories</a>
, , scrineym 6 years 0 Answers 83 views 0

Leave an answer