WordPress.org

Ready to get started?Download WordPress

Forums

Style category tag individually (3 posts)

  1. cavamondo
    Member
    Posted 3 years ago #

    Im doing a long stream of blog post on the landing page. But all the posts comes from different categories, and to make it easier to spot the different categories from on another, id like to style each categories the-category tag differently. Say for sports id like the the_category tgas to be displayed as blue, and for food id like it to be green.. is this possible?

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    Yes. See the in_category() conditional tag.

  3. cavamondo
    Member
    Posted 3 years ago #

    Hehe .. my php is lacking the skill somewhat .. maybe im looking for more of a tutorial ^^

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.