pablocattaneo
7/16/2015 - 12:01 AM

Returns a list of subcategories in the current categegory (Use this code in the category template)

Returns a list of subcategories in the current categegory (Use this code in the category template)

		 <?php
		 /* Returns a list of subcategories in the current categegory (Use this code in the category template)*/
    	if ( is_category() ) {
      $current_cat = get_query_var('cat'); ?>
			<ul> 
			   <?php wp_list_categories('&title_li=&show_count=1&child_of='.$current_cat); ?>
			</ul> 
	   <?php  } ?>