Forums › Forums › Search & Filter Pro › What is the best way to setup filtering by taxonomy terms
Tagged: filter taxonomies, terms-list
- This topic has 28 replies, 3 voices, and was last updated 4 years ago by Anonymous.
-
Anonymous(Private) August 4, 2020 at 4:05 pm #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,
KendellTrevor(Private) August 5, 2020 at 7:14 am #255098I 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) toON
And then in the Form UI:
In each field set
Hide Empty
toON
What will then happen is, as you make selections, the fields will re-populate based on those selections.
Trevor(Private) October 24, 2020 at 2:51 pm #263965There 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.
-
AuthorPosts