Skip Navigation

[Resuelto] Display taxonomy terms associated with the current post

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem: I would like to display a list of taxonomy terms associated with the current post.

Solution: Use the wpv-post-taxonomy shortcode to display a simple list of terms or term archive links, or create a View of this taxonomy filtered by term, set by the current page. This will let you loop over each term and output more customized information for each term in the list.

Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy

This support ticket is created hace 6 años, 1 mes. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por leeR-6 hace 6 años, 1 mes.

Asistido por: Christian Cox.

Autor
Mensajes
#1136250

This is a kind of a new subject...

If I have a taxonomy called Restaurant Categories:
- Asian
- Italian
- Indian
- Mexican
- Seafood

And, Joe's Restaurant serves both Italian and Seafood, I would check both of those categories when editing the Joe's Restaurant Page.

How would I then display on the front end which categories Joe's Restaurant is associated with? Something like:

Joe's Restaurant
123 Elm Street
Joe's has really good shrimp pizza.
Categories:
- Italian
- Seafood

I can't find any documentation on displaying the taxonomies associated with a post. Is that possible?

#1136262

Hi, you can use the wpv-post-taxonomy shortcode to display a simple list of terms or term archive links based on the current post:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy
You can find this shortcode in wp-admin by clicking Fields and Views above any WYSIWYG editor. Under the Taxonomy subheading, click "Restaurant Categories" to insert this shortcode.

If you want to include more customized content for each term, you can create a View of the Restaurant Categories taxonomy, filtered by taxonomy term, where the term is set by the current post or page. This will loop over each term and allow you to add custom HTML to the list.

#1137803

My issue is resolved now. Thank you!