How to make search drop-down menus conditional?
-
Hi,
We have created a new taxonomy for Level (so we can assign jobs to be Entry, Experienced or Executive) and in our job-filters.php template override and we have copied the job_manager_dropdown_categories code to create a new drop-down menu for Level as follows:
<?php job_manager_dropdown_categories( array( ‘taxonomy’ => ‘job-level’, ‘hierarchical’ => 1, ‘show_option_all’ => __( ‘Any Level’, ‘wp-job-manager’ ), ‘name’ => ‘search_categories’, ‘orderby’ => ‘name’, ‘selected’ => $selected_category, ‘multiple’ => false, ‘show_count’ => ‘true’ ) ); ?>
This adds the new menu OK but it isn’t related to the Category menu i.e. if you select an item from the category menu it doesn’t update the items (or post counts) on the Level menu.
Is there a way to make the menus conditional – so the selection on one menu will define the content of the other menus?
Many thanks,
Tim
- The topic ‘How to make search drop-down menus conditional?’ is closed to new replies.