Hi, I’m trying to figure out how to add dynamic attributes to HTML elements in the Pinegrow editor. I have a WP Loop Action that retrieves posts, and I would like to add the category name or slug to the individual items, wrapped in a data
attribute called data-term
.
Outputting something like this
<ul>
<li data-term="category-name">
<a href="">Post Title</a>
</li>
</ul>
Is this possible?