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.