Skip Navigation

[Resolved] Display term names attached to post as html list

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

Problem:
Display term names attached to post as html list

Solution:
You can use the view's shortcode [wpv-post-taxonomy-iterator] to loop through the terms attach to post.

You can find proposed solution in this case with the following reply:
=> https://toolset.com/forums/topic/term-names-as-html-list/#post-2322735

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

This support ticket is created 2 years, 9 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 2 voices.

Last updated by matthewW-12 2 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#2322703

Tell us what you are trying to do?
Output list of taxonomy names as html list using the Fields and Text block. I can't see any control over it, and it just outputs them as bare text.

#2322715

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You can use the view's shortcode [wpv-post-taxonomy] to display taxonomy name as link:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153472

For example:

[wpv-post-taxonomy type="category" separator=", " format="link" show="name" order="asc"]
#2322731

Thanks, but I don't want them linked, just a list, like this:

<ul>
<li>term name 1</li>
<li>term name 2</li>
etc
</ul>
#2322735

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Then, you can also use the following shorcode:

<ul>
[wpv-post-taxonomy-iterator taxonomy="category"]
<li>[wpv-taxonomy-title]</li>
[/wpv-post-taxonomy-iterator]
</ul>

Where:
- Replace "category" with your taxonomy slug.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-1710291

#2322771

My issue is resolved now. Thank you!