Multiple taxonomies and filtering

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.