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 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 vor 6 Jahren.
Assistiert von: Nigel.