Skip Navigation

[Resuelto] Display a taxonomy term meta in a product page

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

Problem: I would like to display taxonomy term meta on a single product page.

Solution:
- Create a View of the Product Category taxonomy. Add a Query Filter that filters by taxonomy term, set by the page where this View is shown (see the screenshot).
- In the Loop Output area, insert both the term title and term meta inside the wpv-loop tags using the Fields and Views button.
- Insert this View in the single Product Content Template or Template Layout.
- Repeat the process for the Animator taxonomy.

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

Etiquetado: 

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Pat hace 6 años, 7 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#673793

Pat

Hello,

I'm using Toolset + WC and have affected 2 taxonomies to products :
- 1 is the standard product cat taxonomy
- The other is a specific taxonomy (animator)

For each of these taxonomies, I have created term metas.
I'm looking to display those term metas in the product page but did not succeed to find the right way.
Can you help please
Regards
Pat

#673892
Screen Shot 2018-04-16 at 10.01.18 AM.png

Hi Pat, here's how I would do this:
- Create a View of the Product Category taxonomy. Add a Query Filter that filters by taxonomy term, set by the page where this View is shown (see the screenshot).
- In the Loop Output area, insert both the term title and term meta inside the wpv-loop tags using the Fields and Views button.
- Insert this View in the single Product Content Template or Template Layout.
- Repeat the process for the Animator taxonomy.

#677242

Pat

Hi Christian,

That's perfect, thanks.
I was just thinking there could be another way to avoid using a Views for that !

Regards
Pat