Skip Navigation

[Resolved] tax term field in archive page

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

Problem:
How to output the taxonomy term name or slug on a taxonomy archive page.

Solution:
Views doesn't have a shortcode for this (the context for the wpv-taxonomy- shortcodes are taxonomy Views and the wpv-post-taxonomy shortcode used on an archive will output the terms of the first post shown in the archive, not of the archive itself).

You can register a custom shortcode to display the taxonomy name (or slug, or various other fields), 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.

Our next available supporter will start replying to tickets in about 3.26 hours from now. Thank you for your understanding.

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 17 replies, has 2 voices.

Last updated by Akhil 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1133524

wow! . how did this work without even mentioning which tax term we are targeting for ?
is it because this is 'tag' archive page

ok this seems to be solved, pls if you have time look into this too : i need the tax-color-code raw value to be next to the category , pls look here at line 25
hidden link

ps: if no trouble pls remove my branding R.I.S.E from the previous reply and rename it to XXXX /SITE . many thanks !

New threads created by Nigel and linked to this one are listed below:

https://toolset.com/forums/topic/split-taxonomy-term-question/

#1133611

Nigel
Supporter

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

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

OK, I've split off the last question into a new thread, I think we are done with this particular issue. (Yes, btw, you don't need to specify the taxonomy or term because it is determined by the URL.)

I'll follow up there. (I edited the earlier reply to remove mention of your site name.)

#1133632

My issue is resolved now. Thank you!