WordPress: Current Category ID navigation
This has been driving me crazy.. how to create a submenu that displays only the current level of categories. So if i’ve clicked into the first level, it displays the second level. If i’ve clicked into the second level, it displays only the 3rd level.. Here’s the code snippet. Enjoy.
Wrap this in a php tag:
$cat_object = $wp_query->get_queried_object();
$currentcat = ($cat_object->category) ? $cat_object->category : $cat;
wp_list_categories(“child_of=$currentcat&title_li=”);



