Skip Navigation

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

This thread is resolved. Here is a description of the problem and solution.

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 2 years, 7 months ago. 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)

This topic contains 4 replies, has 3 voices.

Last updated by a.R 2 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#2323775

a.R

Hi,

instead of

<em><u>hidden link</u></em>

the link should be

<em><u>hidden link</u></em>

Merci

#2324041

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: 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>hidden 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

Languages: English (English )

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

a.R

That´s it - great! Thank you!