Form above uses default get_search_form() WP function (99% themes use it) and shows all available taxonomies and terms, grouped by taxonomies, ordered by term name; empty terms are included – everything is configured via settings (screenshot 1, 2, 3).
Features
- choose whether to display or not terms with no posts
- display post count for every term in dropdown
- group terms by taxonomy for sites with many different taxonomies
- order terms by name, slug, post count or ID
- choose which taxonomies are visible to users in the search dropdown
- full custom taxonomy support
- customize search form and/or search widget by defining custom HTML
- convenient variables for easier HTML editing; ie: {search_query}, {dropdown} etc
- theme PHP functions available for further customizations
- works perfectly with 5sec Search Autocomplete
Custom form
This form was written in theme’s PHP file. It uses plugin’s search logic but the form content is written manually.