Forums Forums Search & Filter Pro Multiple taxonomies and filtering

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • 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 3 posts - 1 through 3 (of 3 total)