Problem:
How to dispaly conditional output based on category/taxonomy/term.
Solution:
To dispaly conditional output based on category you can [wpv-conditional] shortcode.
You can use WordPress native function has_term() inside the [wpv-condtional] shortcode to check if post is assinged with specific category or not.
Please do not forget to register the has_term function at:
=> Toolset => Settings => Front-end Content tab => Functions inside conditional evaluations
You can find the proposed solution with the following reply.
=> https://toolset.com/forums/topic/trying-to-display-content-conditionally-based-on-category/#post-563046
Relevant Documentation:
- https://toolset.com/documentation/programmer-reference/views/using-custom-functions-in-conditions/
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 |
---|---|---|---|---|---|---|
- | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10:00 – 13:00 | 10: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/Kolkata (GMT+05:30)
This topic contains 2 replies, has 2 voices.
Last updated by 7 years, 3 months ago.
Assisted by: Minesh.