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 - 1,591 through 1,605 (of 3,129 total)
Problem:
The user would like to have a search, with term fields, in a taxonomy view.
Solution:
Custom search is not possible for taxonomy views and user views. It is only possible for post views. We have an existing feature request for custom taxonomy searches and I have added your voice to the request.
However, I believe that a workaround can be implemented using custom code. At the end, taxonomy views are just a wrapper around a WP_Term_Query instance. And we do offer a hook to modify the arguments that would be passed to it:
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.
Problem: I have created a Content Template for a custom post type. I am displaying some content inside a custom HTML block. Inside that block, I would like to conditionally display some content if a specific custom field is not empty.
Solution: You can use the wpv-conditional shortcode inside a custom HTML block to add conditional logic for displaying or hiding portions of the content. For example:
[wpv-conditional if="($(wpcf-consignee-company-name) ne '' )"]
<span class="invoice-to-label">Company: [types field='consignee-company-name'][/types]</span><br>
[/wpv-conditional]