Saltar navegación

[Resuelto] How to loop through the taxonomy terms attach to post

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

Problem:
How to loop through the taxonomy terms attach to post

Solution:
You can use the [wpv-post-taxonomy-iterator] shortcode to loop through the taxonomy terms assigned to post.

You can find proposed solution in this case with the following reply:
https://toolset.com/forums/topic/from-taxonomy-tags-in-posts-link-to-search-instead-of-archive/#post-2324851

Relevant Documentation:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-1710291

This support ticket is created hace 2 años, 9 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Este tema contiene 4 respuestas, tiene 3 mensajes.

Última actualización por a.R hace 2 años, 9 meses.

Asistido por: Minesh.

Autor
Mensajes
#2323775

a.R

Hi,

instead of

<em><u>enlace oculto</u></em>

the link should be

<em><u>enlace oculto</u></em>

Merci

#2324041

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

You can create whatever link you like by adding the HTML with the dynamic parts generated by shortcodes (either in the legacy editor, or using the Fields and Text block in the block editor).

Something like:

<a href="<em><u>enlace oculto</u></em> type='ethik-thema' format='slug']">[wpv-post-taxonomy type="ethik-thema" format="name"]</a>
#2324785

a.R

Yes, thank you, that´s clear.
But this doesn´t work with multiple term tags automatically displayed in posts by

[wpv-post-taxonomy type="..." format="link" separator=""]

Sorry for having been unclear.

#2324851

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

In that case what if you try to use the [wpv-post-taxonomy-iterator] shortcode:
=> https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-1710291

For example:

[wpv-post-taxonomy-iterator taxonomy="ethik-thema" separator=" "]
<a href="<em><u>enlace oculto</u></em>;">[wpv-taxonomy-title]</a>
[/wpv-post-taxonomy-iterator]
#2328151

a.R

That´s it - great! Thank you!