Skip Navigation

[Resolved] Create a list of links to taxonomy archives

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

Problem:
How can I create a list of links to taxonomy archives?

Solution:
Let's say I have several posts, with several Taxonomy terms each Post.

You create a View that loops over the posts and then insert this (the example is for native Categories) in the Loop:

<ol class="wpv-loop js-wpv-loop">
  <wpv-loop>
    <li>
      [wpv-post-taxonomy type='category']
    </li>
  </wpv-loop>
</ol>

This will produce a List of all posts and output the direct Links to each of the taxonomy terms Archive pages.

If a Post has more than one term assigned, it will display each of the links, comma separated.

This support ticket is created 7 years, 8 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by shenom 7 years, 7 months ago.

Assisted by: Beda.

Author
Posts
#488133

Hi Toolset Team.

What we´re trying to archive is a bit special but maybe not new to You.

We´re building up a catalog site with a lot of shops. In the detail shop-view there will be a link-button to the shop itself. Normal stuff so far.

What we trying to do to enhance the user experience is deeplink to the shops category, let´s say 'Yoga' - if the user searched for the taxonomy 'Yoga' and the shop get listed in this category or by keyword. This could be a static link so far. But...

Let´s say the shop get´s listed in more then one category.

1) Is it in general possible to assign an extra deeplink (www.shop-xy/yoga) to the taxonomy/category selection in the post type (shop)? So - if the shop is assigned to 5 categories - there would be 5 deeplinks.

2) Is it possible to generate or create this 'dynamic link output' driven by the user input - the search or selected taxonomy/category?

Thank You / Sascha

#488268

Well, you should be able to use the simple GUI generated Taxonomy ShortCode in your loop.

Let's say I have several posts, with several Taxonomy terms each Post.

I create a View that loops over the posts and then insert this (the example is for native Categories) in the Loop:

<ol class="wpv-loop js-wpv-loop">
  <wpv-loop>
    <li>
      [wpv-post-taxonomy type='category']
    </li>
  </wpv-loop>
</ol>

This will produce a List of all posts and output the direct Links to each of the taxonomy terms Archive pages.
If a Post has more than one term assigned, it will display each of the links, comma separated.

The output of the loop is depending on what you search by in the Custom Search, so nothing else to do in order to display only the Link to the Terms of the posts that the user receives upon his/her search.

#489910

Hi Beda.

Thanks - we will test this soon!

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.