Skip Navigation

[Resolved] Custom term archive links using wpv-post-taxonomy

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to create custom links to each term displayed by the wpv-post-taxonomy shortcode.

Solution: Use a separate View of the taxonomy, filtered by term, where the term is set by the current post. Then in the Loop editor, build the custom link tags.

This support ticket is created 6 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

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 ManishT7809 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1092282

Hi

I have custom taxonomy which I am using in custom post type. Custom Taxonomy has multiple terms which are attached with Custom post types. I am displaying taxonomies as a link which opens as an archive page. Instead of that I already have a view which has that taxonomy as a filter.

I have added the custom taxonomy as linked with view URL hidden link but the query send all the taxonomies instead of just one

This is what I have
hidden link type="countrydealsin" format="slug"]">[wpv-post-taxonomy type="countrydealsin" format="name"] but when sending this send all the terms instead of just one

hidden link I don't want to display archive pages instead I want them to send to the same search form which I have created with these terms.

#1092401

Hi, you must create a View of the taxonomy to create these custom links.
- Create a new View of this custom taxonomy, filtered by taxonomy term, where the term is set by the current post.
- In the Loop editor, insert a custom link using the taxonomy slug shortcode:

<a href="/search-result/?wpv-wpcf-location-country=[wpv-taxonomy-slug]">[wpv-taxonomy-title]</a>

- Insert this View in the post or in the post template.

#1093280

Thanks Christian. I thought about that option. I was hoping to use the same view but looks like I will have a create archive layout for these terms.