Hi, couldn`t figure out how to add html-class to post-term-item, if is a child-category:
I have the dynamic Text-Type “List of Terms”, which outputs all categories, a post is associated with.
For CSS styling, it would be helpful to have a html-class with “parent-class” :
term-health: = main-category
term-body: sub-category
Current:
<span class="post-term-item term-health">.. </span>
<span class="post-term-item term-body">.. </span>
Improvement:
<span class="post-term-item term-health"> .. </span>
<span class="post-term-item child_term-health term-body"> .. </span>
Thx for your suggestions – Max