Problem:
The user would like to add some text to some taxonomy archives for SEO reasons. The text should be conditionally displayed depending on the current archive term.
Solution:
If the texts that you intend to add for SEO reasons, will be added for each term? I mean, if there will be a different text for each borough?
If that's the case, why not use taxonomy term fields, check this article https://toolset.com/documentation/user-guides/views/term-fields/
If you only want to have a condition on one or a few terms, you can use conditional blocks and choose the "Views shortcode", then the archive title, and make it equal to a static value in this format "{taxonomy name} : {term name}". Check this example from my install, where the taxonomy name is "Catégorie" (in French) and the term name is "Auto" http://prntscr.com/un1wkn
Relevant Documentation:
https://toolset.com/documentation/user-guides/views/term-fields/
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.
This topic is split from https://toolset.com/forums/topic/i-am-trying-to-set-up-a-query-filter-within-a-view/
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: Africa/Casablanca (GMT+01:00)
This topic contains 2 replies, has 2 voices.
Last updated by 4 years, 2 months ago.
Assisted by: Jamal.