How to use CS FORMS to filter a ACF CPT / ACF Taxonomies on an Archive Layout

Thanks for CS forms ! but have tried and cant work out how to use it for ACF CPT / Taxonomy filtering (using an Archive Layout not a Page/Looper), and there is no documentation or videos I can find to help.

How do I connect CS Forms for Archive Layout filtering with a ACF Custom post Type / ACF taxonomies?
Thanks in advance.

EDIT - Solution - See below…
On the Checkbox Lists for ACf Taxonomy filters… the General / Name = ACF Taxonomy key / slug (this must be an EXACT match)

Hey Simon,

Thank you for your kind words.

I checked your Archive Layout and it’s set to EWC Project and that CPT only has 1 post. Please populate it so we can check the issue with the fitler.

image

Thanks.

Ok… with thanks to Josh D and Gary on the Pro Theme FB users group…
All sorted… with an Archive layout and ACF CPT and ACF Taxonomies (and no code)…

Simply put:

  1. Setup an archive (set the Settings to Post type = your custom post type)
  2. Setup your form
  3. Enable Ajax and add a change selector that targets the content area (where you have the looper consumer).
    This can be an ID (#post-list) or a class (.post-list) - matched to your content area container
  4. Add a checkbox list or radios, or whatever and set the name to your taxonomy key

*** The Checkbox List name (General: Name must exactly = the ACF Taxonomy Key***
(Shame this was not in the documentation at release - it had only the Category_name example for a post)

  1. Add a looper provider on the checkbox options
    Value = {{dc:term:slug}} ** this is a bit different in the CS FORMS provided template for filtered archive
    Label = {{dc:term:name}} ** Documentation says title not name
  2. For those Loop All Terms and select the individual taxonomy
  3. Consume on the option as well and you should see items showing up
  4. Then simply change the dynamic content for value to the term slug and for the name to the term name and you should be in business

Re the “Any” Checkbox List options… these work when there are multiple taxonomy checkbox lists / category lists.
(Note - The “Any” option is included in the CS FORMS provided template for filtered archive, which is for POSTS and POST Category)

It would be nice if when selecting the “Any” checkbox, all of the currently selected one in the same list automatically de-selected… as have “Any” does not seem to overide any other selected individual values.
And for end user clarifty… vice versa.
image

thanks again for CS FORMS! Looking forward to lots of little udpates and further improvements :slight_smile:

Glad to hear that, Simon. More on the way.

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