(How) can I pass “the_category_ID” to “wp_list_cats()”?
-
Hi everyone,
I’d like to build a “traditional” menu structure from categories in a clean and lean way, that separates the main menu (main categories) from the submenus (subcats).
I know that using
<?php wp_list_cats(‘children=0’); ?>,
I can just display the main cats.And I know that using
<?php wp_list_cats(‘child_of=1’); ?>,
I can just display the subcats of main cat 1.BUT what I’d like to do is passing the parameter of the actual main category to the wp_list_cats that is supposed to display the subcategories (therefore, I could keep just one template).
So: is there a way to pass “the_category_ID” to wp_list_cats?
Any help is appreciated.
Kind regards
Dr. Jo
PS: All the best for 2005 … !
- The topic ‘(How) can I pass “the_category_ID” to “wp_list_cats()”?’ is closed to new replies.