How to list child categories in custom category template?

Posted by Prem Tiwari | Updated on

If you want to list child categories in custom category template? This piece of code will return you the child categories of a parent.

Just pass the category id to $cat_id variable which children you want. After that you can design or print those as you want. Example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers