Views plugin lets you build your own custom search for any content type. These searches can be based on post content, taxonomies and custom fields.
When you ask for help or report issues, make sure to tell us settings for your custom search.
Viewing 15 topics - 406 through 420 (of 751 total)
Problem:
The user was trying to implement a view filter that will compare values as numbers(>= <=, etc.) for a checkboxes field.
Solution:
It won't be possible to search using a comparison on a Checkboxes field. Because the field's values are stored as serialized arrays, and search within them is always performed using a "LIKE" operator. Check the possible operator for custom field search here https://developer.wordpress.org/reference/classes/wp_meta_query/
If you need to use "greater than" operator you will need to use a different field type.
I'll suggest using a select field instead of a checkboxes field. You may also use a number field or a single-line field.
The setting to “Show only filter options that would produce results” in a View with custom search can result in expensive queries on larger sites with several filters, and the last update of Views/Blocks included efforts to optimise these to make them maximally efficient.
It seems that in some cases this has led to the setting not working at all, in particlar on the initial page load rather than when changes to filters are applied, such that filter options include options that would lead to no results.
Solution:
This is fixed in next version of Toolset Views/Blocks plugins, currently you can try the patch file of below erratum: