Skip Navigation

[Gelöst] tax term field in archive page

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 6 Jahren. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 17 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Akhil vor 6 Jahren.

Assistiert von: Nigel.

Author
Artikel
#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
versteckter 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 !

Neue Threads, die von Nigel erstellt wurden und mit diesem verbunden sind, sind unten aufgeführt:

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

#1133611

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: 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!