If I have multiple categories assigned to a post, I’d like to be able to style each category link individually. For some reason, WordPress doesn’t assign individual classes to the categories. By using the ‘<?php the_category’ tag all the class names get clustered into one like this:
<div class=”post-253 post hentry category-devils category-nets”
Any ideas on how to target each category class?
- The topic ‘Styling categories classes’ is closed to new replies.