Using wp_dropdown_categories to display an unordered list
-
I am using wp_dropdown_categories in two instances. One displays as an unordered list whilst the other a select tag with various options. The markup is identical. Is there a way to make the second call to ‘wp_dropdown_categories’ echo out an unordered list as well?
<?php wp_dropdown_categories( array( 'taxonomy' => 'job_listing_category', 'hierarchical' => 1, 'show_option_all' => __( 'Any Category', 'wp-job-manager' ), 'name' => 'search_categories', 'orderby' => 'name', 'selected' => $selected_category ) ); ?> <?php wp_dropdown_categories( array( 'taxonomy' => 'job_listing_region', 'hierarchical' => 1, 'show_option_all' => __( 'Any Region', 'wp-job-manager' ), 'name' => 'search_region', 'orderby' => 'name', 'selected' => $selected_category ) ); ?>
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using wp_dropdown_categories to display an unordered list’ is closed to new replies.