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 - 2,401 through 2,415 (of 3,151 total)
Problem: I have two custom fields that contain numeric values. I would like to use conditional shortcodes to display the first field value if it is not empty or '0'. If the first field value is empty or '0', I would like to display the second field value.
Solution: Use the following two conditional shortcodes to achieve this effect:
I can't see any css class (related to private posts) to use and I don't know how to set it up (add a class) conditionally in WordPress Archive Template loop.
Solution:
In WordPress Archive loops, you can get post status value with shortcode [wpv-post-status], and use it in [wpv-conditional] shortcode, display different results like this: