Problem:
There is a small number of cases where the relationship (deliberately) does not exist. I would like, in these cases, to provide generic text to note this.
Solution:
If the relationship (deliberately) does not exist, the shortcode [wpv-post-id id="$ecotypes-main-theme"] will output the current post ID, so you can use it to compare with shortcode [wpv-post-id], for example:
[wpv-conditional if="( '[wpv-post-id id="$ecotypes-main-theme"]' eq '[wpv-post-id]' )"] relationship (deliberately) does not exist. [/wpv-conditional]
Relevant Documentation:
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, 5 months ago.
Assisted by: Luo Yang.