[Resolved] Search Form with Custom Taxonomy Dropdown
Hey there guys. I am using a custom post type and a custom taxonomy for displaying business listings on a directory website I’m creating.
I need the search feature of WordPress to search both a Keyword and dropdown menu category(taxonomy) selector as a part of the search query. I’m using a method for the dropdown posted here: http://wordpress.org/support/topic/terms-of-custom-taxonomy-in-a-dropdown-menu?replies=6
Here’s my searchform.php as of now:
As you can see, the get_terms_dropdown() function is perfectly capable of giving me a full dropmenu of my taxonomy. I just need to figure out if it is possible to take the selection of the dropdown, and append it to the search query somehow in addition to their keyword.
For example, if someone wants to search by zip code, they can type in the zip code in the text field, then select a category in the drop down like “computer services” and it will display all the listings in the computer services category with matching keywords.
Just curious if anyone knows how I can take the value of the selector and make it a part of the query. Thanks for any help you can provide.
- The topic ‘[Resolved] Search Form with Custom Taxonomy Dropdown’ is closed to new replies.