Problem: I have a custom search View with one taxonomy filter and several checkboxes groups filters. When I choose any of the checkboxes, no results are found.
Solution: There is a problem with the syntax for all the checkboxes filter control shortcodes. The code that was in place for the Arts & Culture field, for example, was like this:
[wpv-control-postmeta field="ac-types" type="checkboxes" url_param="ac-types" output="legacy"]
However, the correct format for the field attribute should include the wpcf- prefix for the field slug, like this:
[wpv-control-postmeta field="wpcf-ac-types" type="checkboxes" url_param="ac-types" output="legacy"]
I suggest adding the wpcf- prefix to each checkboxes group filter control shortcode slug.
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-control-postmeta
https://toolset.com/documentation/user-guides/views/views-shortcodes/#wpv-control-post-taxonomy
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 6 replies, has 3 voices.
Last updated by 4 years, 12 months ago.
Assisted by: Christian Cox.