Assign specific class to post title, based on the category it's in? (1 post)

  1. xionkid
    Posted 2 years ago #


    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?

    Please help!

Topic Closed

This topic has been closed to new replies.

About this Topic