Search form in Sidebar
-
Hi Mike,
I’m using this form to search:
<form method="GET" action="https://tbc-recruit-staging.com/vacancies"> <p> <label for="search_types">Location</label> <?php job_manager_dropdown_categories( array( 'taxonomy' => 'job_listing_region', 'hierarchical' => 1, 'name' => 'search_regions', 'orderby' => 'name', 'selected' => $selected_category, 'hide_empty' => false ) ); ?> </p> <p> <label for="search_categories">Sector</label> <?php job_manager_dropdown_categories( array( 'taxonomy' => 'job_listing_category', 'hierarchical' => 1, 'name' => 'search_categories', 'orderby' => 'name', 'selected' => $selected_category, 'hide_empty' => false ) ); ?> </p> <p> <label for="search_types">Contract Type</label> <?php job_manager_dropdown_categories( array( 'taxonomy' => 'job_listing_type', 'hierarchical' => 1, 'name' => 'search_categories', 'orderby' => 'name', 'selected' => $selected_category, 'hide_empty' => false ) ); ?> </p> <p> <input type="submit" value="Search" /> </p> </form>
The 3 taxonomies are being generated on the drop-downs, however the correct search results are not shown on the /vacancies page.
The query string looks okay to me though?
/?search_regions[]=193&search_categories[]=173&search_categories[]=168
Any idea where it might be going wrong?
Thanks in advance for your help
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Search form in Sidebar’ is closed to new replies.