Skip Navigation

[Resolved] Tag Archive header

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

Problem:
How to output the current term of a taxonomy archive?

Solution:
Views doesn't have a shortcode for this currently, you would need to use a custom shortcode, as described here: https://toolset.com/forums/topic/displaying-view-by-taxonomies-url-in-the-archieve-loop/#post-1121600

This support ticket is created 6 years, 1 month 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by Akhil 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1131418

Hi nigel.

over here is my tag archive page : its a layout : hidden link

As you can see the header is fetching all the series of the tags,
i just need one tag thats from url.

the rest of the tags exluding the top need to be in the other cell.
How do i achive this pls. thanks .

#1131893

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

How are you outputting that list of tags currently?

You may want to use the custom taxonomy shortcode I provided in an earlier thread: https://toolset.com/forums/topic/displaying-view-by-taxonomies-url-in-the-archieve-loop/#post-1121600

Otherwise what is being output may be the tags belonging to the first post shown in the archive, rather than to the current archive tag itself.

#1131896

i'm outputting using layout , visual editor cell.

#1131903

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Yes, but what is in the cell? 🙂

#1131905
Tag:[wpv-post-taxonomy type="blog-tag" format="name"]   
#1131953

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Then that is what is being output (https://toolset.com/forums/topic/tag-archive-header/#post-1131893), the terms of the first post in the archive results.

We plan to update the wpv-taxonomy-* shortcodes so that the context where they can be used includes archives, but for the time being you would need to use the custom taxonomy shortcode I gave you earlier.

#1134286

My issue is resolved now. Thank you!