Use Looper to get slug of custom taxonomy term

Hi,

I’m building a looper that grabs the Current Post Terms from a custom Taxonomy – I’m able to get the names of each, so far so good, using this DC parameter: {{dc:term:name}}

Is there any way to get the slug of each term as well? For example, “Air Conditioning” turns into “air-conditioning”. Basically, I’m trying to sanitize the name so I can use it as a custom class I can then use to affect with CSS.

Thanks!
Carlos

Hello Carlos,

Thanks for writing in! Regretfully the slug or post_name is not available with the dynamic contents. Please create your own shortcode instead. Perhaps, this article can help you:

Best Regards.

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