Many people have written in past years about adding search filter to taxonomy view and yet for whatever reason, your company has still not added it. Can you please provide a workaround at least? Basically it's this scenario:
Taxonomy view shows a list of all cities in a given state. I created posts with street names as the title and assigned them all to whatever city they are in. So from this taxonomy view, I want to be able to search for 'main street' and have only the cities with that street name show up in the search results. If I press the clear button in the search box area, it should go back to showing all the cities in the state.
It seems like such a simple concept and yet I can't find a way your program does this. Can you offer help?
Hello,
Yes, you are right, the custom search form only available in post view.
And in your case, it is setup the search form in taxonomy view, for example, you can try these:
1) Edit your taxonomy view, in section "Query Filter", add a filter:
The text search will be added manually using the shortcode eg. [wpv-filter-search-box]
See screenshot: tax-search.JPG
2) in section "Search and Pagination", setup search form like this:
[wpv-filter-start hide="false"]
[wpv-filter-controls]
<div class="form-group">
[wpv-filter-search-box output="bootstrap"]
</div>
[wpv-filter-submit output="bootstrap"][wpv-filter-reset output="bootstrap"]
[/wpv-filter-controls]
[wpv-filter-end]
It should be able to display the search input box + submit button + reset button, and you can search with term's title.
More help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-filter-search-box
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-filter-submit
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-filter-reset
Thanks. I do know that I can search taxonomy titles but I need to be able to search within the items inside those taxonomies, like my example stated. Thanks!
What are the items inside those taxonomies?
If they are posts, you can setup a post view:
- Query posts of your custom post type
- Filter by the post title:
https://toolset.com/documentation/user-guides/filtering-views-for-a-specific-text-string-search/
- Display post information + cities taxonomy
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy