how to give different class names, based on category, on latest post?
-
Hi,
I would like to show my 5 latest posts on footer (archive).
These 5 latest posts come from 2 different categories (journal / note)I would like to style my post so that posts from journal category have class of “journal” while posts from note category have class of “note”.
Is there any specific conditional query for this?
Thanks!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘how to give different class names, based on category, on latest post?’ is closed to new replies.