Is there anyone that has experience with a Search & Filter plugin that works with Bricks? I tried SearchandFilter plugin combined with metabox, but the filter doesn’t work with Bricks. I asked the searchandfilter developers, but they say it doesn’t integrate with Bricks.
I’m building a website for a holiday parc where you can search an accomodation based on f.i. number of people, airconditioning, wellness facilities etc. I do not want to develop it in Elementor anymore, but I know I can easily accomplish this in Ele together with Jet smart filter.
With Bricks, I have had good luck with search and filter on both normal post and custom post types, ie. Meta Box custom post, Pods and Toolset custom post types, using either Ajax Search Pro or Ivory Search.
Thanks for your reply. I’ve already set a Metabox custom post type with custom fields and that didn’t work out with Search&Filter, so I’ll try Ajax Search pro or Ivory Search.
Please let me know if you need any further help or what solution you come up with! Always happy to help out! All of my websites use dynamic data and integrating things like search is something I find my self doing often.
Trying to use S&FPro with a CPT, but it doesn’t appear to be filtering the data. Any examples you have of how to set it up and what the requirements are for the template showing the CPT archive?
S&F Pro takes a little tweaking to get working with Bricks but it can be done. Their docs have a few hints about what to do if you haven’t already taken a read. Custom - Search & Filter Pro Anyways, I’ll layout an example for you.
Setup custom post type called “product” (assuming you know how this works)
Setup custom taxonomy called “product_category” (assuming you know how this works)
In S&F, filter by “product_category” (instructions below)
Create a new Search form and compare your settings to the attached screenshots below for the settings you should pay attention to.
Take the search form shortcode and add it to your results page somewhere so you can use the filters.
If you want ajax to work, add a container with a class (i used .results) around your post query on your results page.
Lastly, you have to inject your S&F ID into the query that you’re wanting to filter using something like this somewhere in php. Mine is in functions.php of my child theme.
Just adding this as an alternate option to step 4. Put a shortcode just before your loop container like this with your search_filter_id and it will do the rest by magic:
While this works, I just found out that Search & Filter causes issues with the custom css editor for elements in the builder just by being active.
It throws javascript errors in the console and makes it so custom css is not saved. I’ve submitted a ticket to the author of the plugin to hopefully have it fixed.
Interesting. That doesn’t make sense to me since post_type should be a single post_type. It shouldn’t be an array, otherwise it would be called post_types. I don’t think I’ll be changing my example above for now.
For anyone who’s been following along, I just wrote a post about a plugin I’ve been building that integrates Search & Filter with Bricks. Check it out if you so desire:
@bricksandmortar, have you used Ajax search pro to filter a query in Bricks? I was able to filter a cpt archive, but pagination or infinite loop did not work. I used interactions to make a load more button and that will load more items, but they are not filtered. I am waiting to hear from their support but was curious if you have used it like this? This is a link to the page if you want to take a look. https://www.staging.srusigns.ca/products/