I have been spending 3 days trying to make the query and filter blocks work for a custom post type filtering through custom taxonomies and ACF fields, all with mainly no luck!
I was sometimes arriving close but never managed to make it work. Often even running into unresponsive pages on the front end.
Also, I have been trying to find ways to register Query classes in order to get something like provided by Woocommerce in @Louis live video about the filter blocks, thinking that might help using the query block. But I am not sure how to do so. If anybody knows a good resource for that, I am all hears!
Anyway, not sure where I get the logic wrong but I think we are quite a few in need of real explanation of the logic and best implementation of the Query/Filter blocks with real life examples that are not WooCommerce ones.
Sorry if it sounds too basic, I have been following a lot of ressources regarding the WP_Query , WP_Meta_Query etc… but I still haven’t been able to achieve any working solution.
This request is a few months old, but this is still lacking, in my opinion.
The Filter block deserves a LOT more explanation. We need more documentation, tutorials, how-tos. Clearly it is extremely powerful, but I can’t get it to do all the things that Louis has demoed in his original video. I just don’t know how. Currently, I’ve tried on a number of occasions, but cannot get a range slider to work for my project. All the (very few) references are Woocommerce applications, which is not what I need.
Having all the features, but not knowing how to use them is frustrating. Please, we need more documentation on this.
Thanks for offering. I am simply using ACF fields, so I need to be able to do range sliders for Meta Queries. But this has proven difficult. In my application, it is for a price field.
Beyond that, I would like to know how to create filters for ordering by Meta Query eg. order by price: high-low, order by bedrooms: high-low, etc. I also want to be able to do a count (X items found). See below what I’m trying to create.
Thanks for clearing it up.
Araminta’s video helped greatly, and I’m able to get the range slider working. I did add a couple of issues I am now experiencing when it comes to adding larger steps to the slider. I’ve included a video showing the issue.