Views plugin provides an API, making it easy to display Views output using PHP.
When you ask for help or report issues, make sure to tell us all related information about your View and the data that you want to display using the Views API.
Viewing 15 topics - 31 through 45 (of 1,314 total)
The customer reported that there are two views on a page that are using some custom shortcode to show a count from the results, but only one of them updates correctly when the search fields are used.
Solution:
Guided that results were not getting updated in the second view because there were no query filters added in it.
Suggested to add query filters in the second view too so that they match the URL parameters used by the other view.
Problem: I am trying to use some custom code from an older site in my new site, but it causes the new site to crash. The code uses a Views filter wpv_filter_taxonomy_frontend_search_get_terms_args to filter the terms included in a front-end taxonomy search filter.
Solution: Check to be sure all PHP function names are unique, and check to be sure all hooks are mapped to the correct unique function name.