Problem: I would like to include a list of terms associated with the current post, but I would like the links for each term to point to a custom URL. The links provided by the wpv-post-taxonomy shortcode point to the term archive pages, but I want to point to a custom URL generated with the term slug.
Solution: The best way to do this is to create a second View. It should be a taxonomy View of the cm-shop-category taxonomy, filtered by term, where the term is set by the current post. Then in the Loop Output editor, build your HTML link tag like this:
<a href="/shop-directory/?wpv-cm-shop-category=[wpv-taxonomy-slug]">[wpv-taxonomy-title]</a>
Insert this View in the Product Content Template or Template Layout to see the list of links appear on the Product page.
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.
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 replies, has 2 voices.
Last updated by 6 years, 9 months ago.
Assisted by: Christian Cox.