Display Subcategories on Category Pages in WordPress691

Author: InfoBeep - December 17, 2017 | subject to copyright

Displaying subcategories can be an add-on to your site, if you have lot of categories for each topics. If you are among those site owners, who have lot of subcategories under main categories of your site and want to display subcategories. This is what you need to do.


Copy the code below and paste it, wherever you like to display categories.

Note: The code above hides the main category when you visit subcategory. If you want to show main category on subcategory pages, remove depth=”1” from the above code.