Problem:
How to conditionally output a taxonomy only if there is a term assigned to the current post.
Solution:
It is not possible to insert such a condition directly from the GUI, it needs to be entered manually.
An example of such a condition—using a "status" taxonomy—is as follows:
[wpv-conditional if="('[wpv-post-taxonomy type='status' format='slug']' ne '')"]<p>Status: [wpv-post-taxonomy type="status"]</p>[/wpv-conditional]
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/displaying-taxonomies-conditionally/#one
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 4 replies, has 2 voices.
Last updated by 5 years, 4 months ago.
Assisted by: Nigel.