Problem: I would like to update my custom search filter so that the default option "all" or "any" is selected when the page first loads, rather than some other option.
Solution: Use the default_label attribute in the filter control shortcode to supply a meaningful default text label, or leave it blank:
[wpv-control-postmeta field="wpcf-town" type="select" url_param="wpv-wpcf-town" default_label="All towns"]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-control-postmeta
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 4 replies, has 2 voices.
Last updated by 5 years, 6 months ago.
Assisted by: Christian Cox.