How to show WordPress parent and child category using a different template?
I am currently trying to do a directory style site, and I currently have parent categories and child categories.
Right now, I have the parent categories showing and when a parent category link is clicked I'm using category.php
to show the list of child categories.
Now I want to that when a child category link is clicked WordPress shows all the posts in this child category.
Is there a conditional statement or a way that I can have the child categories go to the archive.php
so it can display something else?
Right now parent and the child categories pull from the category.php
, so they end up being the same page.
Topic categories Wordpress
Category Web