Post Style determined by category (1 post)

  1. pconnors
    Posted 8 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic