Forums › Forums › Search & Filter Pro › Multiple taxonomies and filtering
Tagged: Taxonomies
- This topic has 3 replies, 2 voices, and was last updated 5 years, 5 months ago by Trevor.
-
Anonymous(Private) June 3, 2019 at 1:50 pm #213119
Hi!
Is there any way to achieve this functionality (see attached image) without splitting up the entries in our taxonomies (purple) into multiple ones (it’s a multilingual site with loads of merged tags from an old site). The display of purple entries are controlled via an ACF Options Page today.
The current search and filter function is built without plugin and search does not work well with filtering.
Anonymous(Private) June 7, 2019 at 10:19 am #213534So, say we’re sorting it out to be different taxonomies. Would it still be possible to show only the taxonomies we manually pick from the options page, or does it always list all available tags in this case? Say we got 500 tags, but want to display only 20 in the sidebar.
Trevor(Private) June 7, 2019 at 10:50 am #213538There are two ways (in the current plugin version) to restrict the terms shown in the front end form field.
One is to exclude the ones you want to hide in the advanced settings of the form field, but this has the drawback that if you add a new term in general use on the posts, and also want that hidden, you must edit the form. The other alternative is to use this filter:
https://searchandfilter.com/documentation/action-filter-reference/#filter-input-object
And in your code setup an array on the ones you do want to show, and then use PHP to remove all the others by swapping the array made by the plugin for your restricted version.
-
AuthorPosts