<?php
$cat = get_query_var('cat');
$cats = wp_list_categories('title_li=&echo=0&orderby=id&use_desc_for_title=1&hide_empty=0&child_of='.$cat);
if(is_category()) :
?>
<ul>
<?php echo $cats; ?>
</ul>
<?php endif; ?>
This is the complete code and it’s working fine on parent category but I want to display the SAME (with parent childs) menu on child category.
The problem is get_query_var(‘cat’) because this output current category ID and it’s not exactly what I want.
Thanks for your help,
Akis