Problem: I would like to use a conditional to test the value of a custom field on a related (parent) post. The conditional generated by the GUI does not seem to work.
Solution: There seems to be a problem with related post field conditionals inserted by the GUI. As a temporary workaround, use the wpv-post-field syntax instead of the $(field) syntax, like this:
[wpv-conditional if="( '[wpv-post-field name='wpcf-calendar-item-event-url' id='@calendar-item-event-date.parent']' ne '' )" debug="true"] <div class="h3-s">Website</div> <div class="h4 info website">[types field='calendar-item-event-url' item='@calendar-item-event-date.parent' target='_blank'][/types]</div> </div>[/wpv-conditional]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/
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 3 voices.
Last updated by 6 years ago.
Assisted by: Christian Cox.