I created this categories structure in my wordpress:
* Category1
* SubCategory1(of Category1)
* SubCategory2(of Category1)
* Category2
* SubCategory1(of Category2)
* Category3
I need to list on each category its subcategories.(without any post)
So when I will access the Category one -> I should see only the subcategories. If the Main category does not have any subcategory -> I should see its posts.
My question1: What is the category page file name on wordpress? (I searched a lot but without any clear answer).
My question1: How to display for each main category(eg: Category1) only its children.
http://codex.wordpress.org/Template_Tags/wp_list_categories
you can achieve that with this code: