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
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
Hi Waqar,
Thanks for your helpt, perfect this works fine.
BR
Peter
My issue is resolved now. Thank you!