Views is a WordPress plugin that lets you easily display content on your website's front-end in any way you choose.
Views User Guides include detailed documentation for creating lists of content, templates for content and archive page and also explain how to create parametric searches for any content type.
When you ask for help or report issues, make sure to tell us the versions of the Toolset plugins that you have installed and activated.
Viewing 15 topics - 11,986 through 12,000 (of 12,078 total)
Problem: I have a custom search View that lists posts. I would like to filter these posts by 3 custom fields. One of the custom fields should be filtered as a range, with a min and max value.
Solution: When adding the Search Filters in your View, choose the option to compare "between", and always compare numbers as type "UNSIGNED".
Problem:
How to pass a search string to a View that includes a text search?
Solution:
You pass the search term using a wpv-view shortcode attribute, as described in the linked documentation.
Note that you can only pass shortcode attributes when inserting the View by shortcode, you cannot pass attributes when using a Views cell in a Layout, for example. In that case you would need to replace the Views cell with a Visual Editor cell and insert the View via shortcode.
Problem:
In a post view, use option "Pagination enabled with manual transition and AJAX", display the search form and search result in different place, with different shortcode/widget.
But the AJAX pagination does now work as expected.
Solution:
the AJAX pagination works only when you display the search form and search result in the same shortcode [wpv-view], You can choose another option: Pagination enabled with manual transition and page reload.
Problem: I would like to be able to search and filter Views using date fields I created in ACF.
Solution: Only simple fields like text and number can be used as filters in Views. The date format created in ACF is not compatible with the date format used by Types and Views. The only way to use these values as filters is to create new date fields in Types and transcribe the old dates into the new fields.