Post Style determined by category
I’m look to find a way to create custom Post headers that change depending on what category its under.
A post is listed under Category A. The title of the post would have an icon next to it corresponding to Category A.
The next post is Category B. A different icon would be present next to the post title.
This concept is similar to the way slashdot.org has category icons in every one of their posts.
The PHP is where I get lost. How would I form the code to read the category and choose the proper DIV class for the post? Is this even possible?
- The topic ‘Post Style determined by category’ is closed to new replies.