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.
Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.
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)
Este tema contiene 2 respuestas, tiene 2 mensajes.
Última actualización por hace 6 años, 7 meses.
Asistido por: Christian Cox.