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 - 2,206 through 2,220 (of 2,225 total)
Problem: I would like to order the results of a View based on how well they match the search criteria.
Solution: Views sorting algorithms are based on WordPress sorting algorithms, which do not implement a "best match" criteria. This type of ordering would require significant custom code using the Views APIs wpv_filter_query and/or wpv_filter_query_post_process.
Problem: I have a custom search View with multiple filters. I am trying to show and hide some filters using CRED conditional groups, but it's not working.
Solution: CRED (or Forms) conditional groups cannot be used in a View's search filters. They can only be used in Forms. At this time there is not an easy way to show and hide some filters based on the selections in other filters.
Views has a feature called "Limiting Filter Inputs According to Available Results". When this configuration is chosen, the filters will respond intelligently each time a new filter is selected, so that only the filter options that would produce results are enabled. Unfortunately it is not as customizable as conditional HTML.
Problem:
Posts have a Types number field, and a custom search View should be able to filter posts where the user specifies min and max values for the field.
Solution:
When inserting a Filter Control for the field, using the UI you can select the between comparison which will open up options for comparison type (e.g. compare as number), where the labels for the min and max controls can be specified (see screenshot in answer below).
Problem: I have a custom field that allows multiple selections. In a custom search View, the filter is combining all the selections using "AND" instead of "OR". I would like to change the search criteria to "OR".
Solution: You can modify the View's Query Filter to accomplish this. Instead of "equal to" you can choose "in" in the custom field comparison options to achieve the results you want.