Navigation überspringen

[Gelöst] How to loop through the taxonomy terms attach to post

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 2 Jahren, 10 Monaten. 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)

Dieses Thema enthält 4 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von a.R vor 2 Jahren, 10 Monaten.

Assistiert von: Minesh.

Author
Artikel
#2323775

a.R

Hi,

instead of

<em><u>versteckter Link</u></em>

the link should be

<em><u>versteckter Link</u></em>

Merci

#2324041

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: 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>versteckter Link</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

Sprachen: Englisch (English )

Zeitzone: 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>versteckter Link</u></em>;">[wpv-taxonomy-title]</a>
[/wpv-post-taxonomy-iterator]
#2328151

a.R

That´s it - great! Thank you!