Creating drop down category menu displaying ‘child’ categories.
-
I’m struggling with this one. I have wordpress set up with two parent categories. Under these two parent categories there are a large number of child categories.
I want to create two drop down lists, one for each parent category, that displays all the child categories within the parent. Make sense?
Here’s what I have. Note. it doesn’t work! ??
<?php _e('Categories:'); ?> <form action="<?php bloginfo('url'); ?>" method="get"> <?php wp_list_categories('orderby=id&show_count=1&use_desc_for_title=0&child_of=4'); ?> <input type="submit" name="submit" value="view" /> </form>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Creating drop down category menu displaying ‘child’ categories.’ is closed to new replies.