Problem:
The issue here is that the customer wanted to use a different content template for each of his Taxonomy Terms.
Solution:
The solution to this is by using the has_term function and our [wpv-conditional] shortcode.
For example.
[wpv-conditional if="( has_term('Chinese', 'foreign-language', null) eq '1' )" ] Content template 1 [/wpv-conditional] [wpv-conditional if="( has_term('Japanese', 'foreign-language', null) eq '1' )" ] Content template 2 [/wpv-conditional] [wpv-conditional if="( has_term('French', 'foreign-language', null) eq '1' )" ] Content template 3 [/wpv-conditional]
This way for each of the taxonomy terms you are able to use a different content template to depict how they are displayed.
Relevant Documentation:
For more information on this please take a look at the link below.
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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
This topic contains 18 respuestas, has 2 mensajes.
Last updated by DavidAlexander hace 8 años.
Assisted by: Shane.