Forums Forums Search & Filter Pro What is the best way to setup filtering by taxonomy terms

  • This topic has 28 replies, 3 voices, and was last updated 4 years ago by Anonymous.
Viewing 10 posts - 1 through 10 (of 29 total)
  • Anonymous
    #255042

    Hello there,

    I’m wondering if there’s a better way of setting up filtering of post by a specific taxonomy term related to the post.

    My current setup is setting up a separate form for every term for the taxonomies on the site. It has become a bit of a burden to do so. Is there a more efficient way of doing this?

    Kindly let me know, thanks.

    Regards,
    Kendell

    Trevor
    #255045

    Are you using a single taxonomy term each time? Is there more than one form per page? Can you explain in detail why you needed to use more than one form, and maybe send me live links/URLs to two of the search pages so I can take a look?

    Anonymous
    #255066
    This reply has been marked as private.
    Trevor
    #255098

    I see, I think.

    The solution that I have will hide any with 0 count, but I hope that is not an issue.

    In the General Setting tab, set Auto Count (both settings) to ON

    And then in the Form UI:

    In each field set Hide Empty to ON

    What will then happen is, as you make selections, the fields will re-populate based on those selections.

    Anonymous
    #263930
    This reply has been marked as private.
    Trevor
    #263957

    Those videos now both show as deleted?

    Anonymous
    #263961
    This reply has been marked as private.
    Trevor
    #263965

    There IS a way to do that, which would involve using our Post Type Archive method. The problem is that you have chosen to use Beaver Builder, and because of the way it makes pages, we cannot integrate into an archives page, only a single page, hence your need to make a lot of pages with a form for each.

    This is a problem common with many page builder plugins, like Site Origin, WPBakery Page Builder and more.

    Some Page builders do follow the WordPress Codex in the way they create archive post pages so that we can access the wp_query(); for example Divi Builder and Elementor Pro. So, in the integration guide for that page builder:

    https://searchandfilter.com/documentation/3rd-party/divi/
    https://searchandfilter.com/documentation/3rd-party/elementor/

    You will see that you can use the Post Type Archives method, and from there you can autodetect the archive page you are on (our plugin pre-selects the field selection based on the archive page slug) and it stays within the URLs of the archive pages.

    We are unable to do this for Beaver Builder.

    Trevor
    #263967
    This reply has been marked as private.
    Anonymous
    #264026
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 29 total)