Problem:
How can I check if a Post is assigned to any Taxonomy Term, even WooCoomerce Taxonomy Terms?
Solution:
Try this syntax:
[wpv-conditional if="( has_term('Term Name', 'taxonomy_slug', null) eq '1' )" ] Yes, it's assigned [/wpv-conditional]
You will need to register
has_term
as a function in Toolset > Settings > Front End Content > Functions inside conditional evaluations
Relevant Documentation:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/displaying-taxonomies-conditionally/
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.
Our next available supporter will start replying to tickets in about 1.46 hours from now. Thank you for your understanding.
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 Armando 7 years, 8 months ago.
Assisted by: Beda.