Sauter la navigation

[Résolu] How to loop through the taxonomy terms attach to post

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 2 années et 9 mois. 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)

Ce sujet contient 4 réponses, a 3 voix.

Dernière mise à jour par a.R Il y a 2 années et 9 mois.

Assisté par: Minesh.

Auteur
Publications
#2323775

a.R

Hi,

instead of

<em><u>lien caché</u></em>

the link should be

<em><u>lien caché</u></em>

Merci

#2324041

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: 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>lien caché</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

Les langues: Anglais (English )

Fuseau horaire: 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>lien caché</u></em>;">[wpv-taxonomy-title]</a>
[/wpv-post-taxonomy-iterator]
#2328151

a.R

That´s it - great! Thank you!