Output terms from custom taxonomy in posts

Hi there

Have a look at https://www.advantis.dk/cases-v3

Here I output posts using the CS Element ‘Posts’ with the Looper Provider here https://a.cl.ly/2NuEWbAA. This works great.

However I have outputted some custom selectboxes in the top of the the same page, which I will use to filter the posts by one or two custom taxonomies. The selectboxes are outputted using a custom shortcode I have made, and I can easily do the JS filtering myself.

However - I will need to output a data-attribute for each post on the page. The attribute should output all terms from a custom taxonomy I have created.

How do I add the data-attribute most easy outputting terms from my custom taxonomy on each post?

Thanks!

Hi @mediegruppen,

Thanks for reaching out.
You can set the data-attr from Custom Attribute option under Customize tab and add the value of the taxonomy you want. I have added a Text element inside a Looper Provider with {{dc:post:title}} to show the title and added the custom attribute data-attr with the value {{dc:post:id}} to show the ID as data attrbute.

Hope it helps.
Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.