Skip Navigation

[Resolved] View the taxonomy as list items

This support ticket is created 3 years 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by peterB-20 3 years ago.

Assisted by: Waqar.

Author
Posts
#2256451

Hi,
Tell us what you are trying to do?
* Real estate site
* Detailed property descriptions page
* Taxonomy "features"
* The taxonomies and all other property details are based on an XML import

What I need to have is the features (taxonomy) in an unordered list to improve readability.

Can you give some help with the code? I assume a need the for each for that but somehow this is not working.
An other option is to use a custom field (multi line) with the same features.

Is there any documentation that you are following?
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-for-each

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link

Thx
Peter

#2257213

Hi Peter,

The shortcode "wpv-for-each" works for the custom fields, but, to loop through the attached taxonomy terms, you can use the shortcode "wpv-post-taxonomy-iterator":
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy-iterator

For example:


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

Note: In this example, I've used the taxonomy slug "category", but you can replace it with your target taxonomy's slug.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#2258403

Hi Waqar,

Thanks for your helpt, perfect this works fine.

BR
Peter

#2258405

My issue is resolved now. Thank you!