Problem: I would like to use conditional HTML to display a list element, but only if the "title" custom field is blank.
Solution: Use the following conditional format to prevent extra list elements from being displayed if the field is blank:
[wpv-conditional if="( $(wpcf-title) ne '' )"] <li>[types field='title'][/types]</li> [/wpv-conditional]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/conditional-html-output-in-views/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 6 replies, has 2 voices.
Last updated by 4 years, 6 months ago.
Assisted by: Christian Cox.