Skip Navigation

[Resolved] Taxonomy archive page displays multiple taxonomy terms

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

Problem: I have created a WordPress Archive for a custom taxonomy. On that page, I have inserted a shortcode to display the current term, but multiple terms are shown.

Solution: Make sure to use wpv-taxonomy-archive and not wpv-post-taxonomy. These shortcodes work differently, and only the wpv-taxonomy archive shortcode will provide the correct term information on a WordPress Archive.

[wpv-taxonomy-archive info="name"]

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-archive
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy

This support ticket is created 6 years, 10 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 4 replies, has 2 voices.

Last updated by Torbjörn 6 years, 10 months ago.

Assisted by: Christian Cox.

Author
Posts
#612709

I am trying to: Make a archieve page that dislpay taxanomies with a title that display the taxanomie title

Link to a page where the issue can be seen: hidden link

I expected to see: Just the title for taxanomie "cafeer"

Instead, I got: Several random (!??) taxanomies

#612913

Please copy + paste any code you have used in a Layout Visual Editor Cell, WordPress Archive, View or Content Template used to design this page. I will review it and give you some feedback.

#612923
Skärmavbild 2018-02-05 kl. 16.41.08.png
Skärmavbild 2018-02-05 kl. 16.40.58.png

Hello,

Hmm...

I just want to make a term archieve of my custom post type Foretag and wanted to show the archieve term titel
[wpv-post-taxonomy type="grupp" format="name"] and the archieve posts that belonged to that term.

The archive posts show up just as I aspected, but not the term titel. I get several term titels. I suspect that it displays all term titels from one of the posts that displays in the search. Note that the custom term field "icon" shows just as I want and aspect.

#612953

Thanks for the information, I understand now. In a Taxonomy Archive, you can display the current term using this shortcode:

[wpv-taxonomy-archive info="name"]

The shortcode currently in place will display all the taxonomy terms associated with a post:

[wpv-post-taxonomy type="grupp" format="name"]

But since this is an archive, that shortcode will not work. You should remove the wpv-post-taxonomy shortcode and replace it with wpv-taxonomy-archive as shown above.

More information about these shortcodes here:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-taxonomy-archive
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy

#612959

Yes!

Thank you ever so much for help.

/Torbjörn