Filtering for ACP CPT is not working in CS Forms

Hi,

I have installed the fresh CS Forms update but unfortunately it doesn’t seem that it changed my filtering issues. None of the taxonomies I have for Events CPT are actually filterable with CS Forms for some reason. I tested both the Checkbox and Select field types again after the update. I also tested it with the default Looper Provider set for the archive page in the Conditions as well as by adding Query Builder with more granular settings.

Are there any known issues to be fixed in that respect later or maybe I set something incorrectly?

Hey John,

Thanks for posting in!

You will have to make sure that the name of the form field matches the name of your taxonomy slug.
image

Kindly let us know how it goes.

Thank you @ruenel. That is good to know.

Then I have a bunch of additional questions:

  1. Can we already sort posts using dates ranges by using Date Pickers (from date and to date) and connect them to the ACF fields event-start-date and / or event-end-date in my example? We can use date filters as Meta Values in Looper Providers, but how do we assign them correctly in CS Forms so we could do that dynamically with facets? Is the date format should be compliant with the corresponding ACF field formats we are comparing them with? Can we create a filter related to the current date to show past events and upcoming events?

  2. Can we make Select Fields blank or give them specific values when the page loads? And can this behaviour be linked to the Reset Button? I ask because at the moment they pick the first value from the lists. But when the page loads, all taxonomies are ignored in the Looper output showing all the posts. If we click “Reset filters,” the choices will return back to the first options in the fields by default. However, the Looper output will be different this time from what we see when the page loads initialy as the values selected by default are actually applied this time. This is a bit confusing for the users. I believe that initial page load output should not be different from what you get when you click “Clear Filters”.

  3. Is it possible to target ACF Select Fields in CS Forms for filtering, or only Taxonomies? If yes, then how to do it? Is that possible with repeaters? If yes, how can we do it?

  4. It seams like the Reset Button if it has fixed width can not be aligned to the right. I tried to use Flex Box but it didn’t help.

We need videos and/or documents on how to use all these goodies with the External API correctly. How to dynamically shape API requests up based on the selection of fields in the CS Forms. The way we made API requests before CS Forms came out is a more static way. Please show the specifics of different dates formats when you prepare the materials, if that is important for correct output. I hope they will be delivered to YouTube as well as maybe more advanced tutorials to Max rather soon.

Thank you for creating CS Form! It is a bit hard to understand how it works at the begining, but it is a great and flexible solution with a lot of potential.

Hello John,

1.) If you want to add a custom field, normally the link URL would be something like:

https://example.com/events/
&taxonomy=season
&meta_key=event-start-date
&meta_value=2026-03-22
&meta_compare=>=
&orderby=meta_value
&order=ASC

This would mean that some of these parameters will be hidden fields in the CS Form.

2.) By default, the archive layout will display according to what the Looper Consumer consumes. It is better to have the Select fields to have a “default” option or first value.

3.) Using the ACF Select Fields in the Form may not work as expected. If you can tie up the Select fields to #1, then you can make it work. This would entail a complex query, though. It would need a complete understanding of how WordPress Query works to be able to accomplish this.

4.) You can wrap the Reset Button with a DIV element to easily control the width or position.

Yes, we will be adding more video tutorials to our Social media channels.

Best Regards.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.