Thread Starter
akis
(@akis)
Thanks but doesn’t seem to work and looks preety complicated.
./category/wordpress/
show menu (ul.li) with wordpress category childs
./category/wordpress/themes/
show menu (ul.li) with wordpress category childs (the same)
./category/wordpress/plugins/
show menu (ul.li) with wordpress category childs (the same)
and so on.
It’s that complicated?
Thread Starter
akis
(@akis)
<?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
Thread Starter
akis
(@akis)
Yes, that was badly copy/paste.
Thanks you for your reply but this doesn’t solve the real problem.