Forums Forums Search & Filter Pro Multiple taxonomies and filtering

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #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.

    screenshot

    Trevor
    #213128

    They would need to be separate taxonomies. You can ‘transfer’ taxonomy terms from one taxonomy to another quite easily though. However, I am not sure if it is possible with custom fields.

    Anonymous
    #213534

    So, 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
    #213538

    There 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.

Viewing 4 posts - 1 through 4 (of 4 total)