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 - 17,326 through 17,340 (of 27,788 total)
Problem:
I have added a picture to user fields and want to display it in a view. However I cannot find a way to test the field to see if it is empty. field added to user fields is "Family Photo"
Solution:
I suggest you try with Views shortcode [wpv-conditional] to check if the user's image field isn't empty, then do want you want, for example:
[wpv-conditional if="( '[wpv-user field='wpcf-family-ohoto']' eq '' )"]
Family Photo is empty, do something here
[/wpv-conditional]
Problem: I would like to loop over repeating custom fields and display each field conditionally using wpv-conditional.
Solution: The wpv-conditional shortcode will not be effective in a for-each loop. The best solution is to write a custom shortcode that performs this type of operation.