WordPress.org

Forums

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

  1. xionkid
    Member
    Posted 11 months ago #

    Hi,

    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!

Reply

You must log in to post.

About this Topic