Assign specific class to post title, based on the category it's in?
Okey, I need some help that is pretty simple. On my blog i make some posts that are NSFW. I want those posts to have a different title colour in the main post feed on the blogs homepage. I can do the css myself however, I need help with the php code to assign a specific class to a post title that has a specific category. How do I do this?
- The topic ‘Assign specific class to post title, based on the category it's in?’ is closed to new replies.