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.
I was getting ready to post this as a new topic but found yours so I am adding it here instead
Subject: Assistance Needed with Query Editor and Request for In-Depth Video Tutorials
Hello Cwicly Peeps,
I am reaching out with an urgent request for guidance on the Query Editor. Despite diligently studying all available documentation and resources, I find myself consistently struggling with queries, often spending days attempting every combination imaginable without success. For instance, I am currently trying to create a meta filter for a custom post type (CPT) radio button, where the value is ‘1’ for “Yes” and ‘0’ for “No”. Unfortunately, I am unable to determine the correct settings for the Meta Query in this scenario.
Could someone kindly provide the exact settings needed for this specific case? This would save me invaluable time and significantly reduce trial and error.
Additionally, I believe that comprehensive video tutorials covering various scenarios in the Query Editor would be highly beneficial for many users like myself. This aspect of Cwicly is foundational, and more detailed guidance would greatly enhance our ability to utilize the platform effectively. @StrangeTech
Ok so i am fairly new here, are you suggesting that I can use the visibility feature (the eyeball on the top left of the UI area on the right) for this part instead of using the query? Please forgive me if that is a obvious thing, as i am new I am still figuring things out. And if this is a workflow would i run it on the query block itself or the query template or the individual Div?
Also, i can set up the value and Labels to whatever works best. Originally i had them set to yes and Yes and no and No, but i switched it to 1 Yes and 0 No, thinking that might work better.
I dont write or read code either, but i can copy past Like a Boss and I am slowly learning and understand the overall concepts. Keep this in mind as you respond to me. Thanks so much!!!
Thank you so much for your help, unfortunately i followed exactly those steps and it did not work. I also tried it with a True False toggle button with the sam non results… I really appreciate your trying! Let me tag a couple of the devs and hopefully they can jump in here to help! @Araminta@Louis Thanks so much T-low!
Hey thank you!, I have done this exactly but with a post type. Hang on I will take a screencast of my setup so you can see, maybe i am missing something.
two things, you are using the ACF field key, and im not exactly sure where the difference precisely lyes, but as far as i know, Cwicly compares the field name.
The second thing is that you are useing true and false instead of
That’s perfectly fine, by the way, but in some ways not foolproof!
As already mentioned here Check for empty field in meta query and other true and false are values that php registers and are not easily (foolproof) comparable. While true still works in most cases, false may need to be compared diffrently, for example with empy.
So if you would like to go with true and false, use this for false:
and this for true:
And the part about profile and profiles is most likely your post type definition and nothing to worry about.
I personally always use either the plural or the singular for both values for all post types.
Life Saver!!! That was it, i was using the field key not the name. Yayayaya. Thank you sooooo much. Have a great day. And thank you for taking time out of your day to help me that was really nice of you.