Sauter la navigation

[Résolu] tax term field in archive page

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 3 mois. 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)

Ce sujet contient 17 réponses, a 2 voix.

Dernière mise à jour par Akhil Il y a 6 années et 3 mois.

Assisté par: Nigel.

Auteur
Publications
#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
lien caché

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

Les nouveaux fils créés par Nigel et associés à celui-ci sont repris ci-dessous :

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

#1133611

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: 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!