Problem: I would like to list the taxonomy terms associated with a post, and format them as links. However, when I use the wpv-post-taxonomy shortcode to display links, the URLs point to the term archive. I would like to link to a custom post URL instead, where the post slug matches the term slug.
Solution: Assuming the Brand term slugs and their corresponding Tour Operator post slugs are identical, you can do this by replacing the wpv-post-taxonomy shortcode with a View of the Brand Taxonomy. Add a Query Filter, filtered by term, where the term is set by the current post in the loop. In the Loop Output of this View you can construct link tags using a combination of HTML and Views Shortcodes, like this:
<a href="/tour-operator/[wpv-taxonomy-slug]">[wpv-taxonomy-title]</a>
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-slug
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 |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 2 respuestas, has 2 mensajes.
Last updated by Daniella hace 5 años, 11 meses.
Assisted by: Christian Cox.