While Working on my Wallpaper WordPress theme one of my buyer asked to show child categories on category page. Normally we do not show sub-categories on categories pages but it is really a good idea to show sub-categories on category pages.
Wp_list_categories () function is used to display all the list from your WordPress database in a list format and that list is also in UN-ordered list, The user wants this category list in two columns and on the top of every category page if that category does not have any sub=category or child category then there should not be any sign on the top of it.
The problem was not to take categories from post and it should be available on the category pages. WordPress use archive.php file in absence of category.php file. So my idea was to grab raw category list from the WordPress database and then for this category check all the child category from this list and them display these category in two columns
The Whole concept was developed by the man you are watching here. I am rakesh Kumar Serial Niche Blogger and SEO Enthusiast. find me onfacebookandon twitter.. Developed popular WordPress theme for Wallpapers and funny Image WordPress theme. Love SEO optimized WordPress theme Designing and Customization.