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 - 346 through 360 (of 369 total)
Problem: If no items are found in a View of WooCommerce Orders, I would like to automatically refresh the View results after a set amount of time.
Solution: There is no automatic feature for refreshing View results, nor is there a true JavaScript API for Views, but you could achieve something similar by reloading the current page in a setTimeout function added to a script tag in the wpv-no-items-found block of the View, for example:
This will reload the current page after 5 seconds if no results are found in the View. That loop of refreshing every 5 seconds would continue until results exist.
Problem:
The user would like to filter a view using a taxonomy assigned to the parent post in a Toolset relationship.
Solution:
Actually, this is not possible. Toolset does not offer a way to filter a custom post type by the custom fields or taxonomies from a related post type. You can only filter with:
- The post's default(title, content, date, etc.) and custom fields.
- The post's taxonomies.
- ONE related post type in a Toolset relationship.
As a workaround, I'll suggest syncing the taxonomy from the parent post to the child posts. You can add a custom code, hooked to the save_post action, use the relationship API inside of it to synchronize the taxonomy assignment to the child posts.
Problem:
The user has a custom taxonomy that has months as terms. Inside a view's taxonomy filter, he would like to display them in months order and spread them in two columns
Solution:
Toolset does not offer a way to sort taxonomy terms in a filter. Use a third-party plugin to enforce your custom taxonomy order. Examples:
Problem: I created two CPTs: Events and Profiles. I have a View of Events displayed in the template for Profile posts, and I would like to only display Events where the title of the current Post can be found in the "notes" WYSIWYG field on the Event post.
Solution: Configure the notes custom field Query Filter to use a shortcode attribute and pass the current Profile post title into that shortcode attribute like so:
Problem:
A view's taxonomy filter does not display some terms until the user adds more than one post to the term.
Solution:
The view displays the media files, which do not have the status set to publish. In that case, Toolset will search for their parent post status. And the status should be "publish" or "private".
The terms that the user talks about were including only one post, and that post did not have the status "publish" or "private" and it did not have a parent post either.
The media files need to be attached to a post, or the view needs to query media files in all statuses.