Problem:
I want to display video recording links from an Event. Some events have a pre-event meeting that also has a video recording. I have more than one type of event so, I only want to display the video links that are of event Type 1 AND the video recording link field is not empty - OR the pre-event video recording link field is not empty. Logic should be something similar to this:
if ( (event-type === '1') AND ( (video-link-1 > 0) OR (video-link-2 > 0) ) )
Solution:
I suggest you try this:
1) Edit your view, setup the filters as:
(video-link-1 > 0) OR (video-link-2 > 0)
2) In the Views loop, use shortcode [wpv-conditional] to check the custom field "event-type" value, if the value is "1", then display this item.
Relevant Documentation:
https://toolset.com/documentation/user-guides/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 |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 3 replies, has 2 voices.
Last updated by 6 years, 8 months ago.
Assisted by: Luo Yang.