Problem:
We want to display content conditionally depending on wether a certain URL field on our site (it's a term field) is populated or not.
Solution:
You can do this witt HTML conditinal.
The important part when working with URL fields is to return the raw value of the field instead of the formatted one, in HTML conditionals, like so:
[wpv-conditional if="( '[types termmeta='your_field' output='raw'][/types]' ne '' )" debug="true"]YES; URL IS SET[/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 |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)
This topic contains 2 replies, has 2 voices.
Last updated by 4 years, 7 months ago.
Assisted by: Beda.