WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Style categories differntly with condition of some sort (2 posts)

  1. zgordon
    Member
    Posted 7 years ago #

    Hi,

    I am setting up a blog for classes that I teach and have assigned a category for each class. I would like to stylize each class, or category differently. Using category templates I have gotten the styles I want on the categories pages.

    What I would like to do is have the categories keep these styles when the posts appear on pages besides the category pages. For example, on the index page.

    The site is currently at dabrook.org. You can see the styles I am going for on the categories pages.

    Is there a way, possibly using a conditional statement, to determine what category a post is in and then apply a certain style to that post depending on the category?

    Thanks!

  2. zgordon
    Member
    Posted 7 years ago #

    Ok, this was remedied with an application of multiple loops for each category I wanted to display differently.

    http://codex.wordpress.org/The_Loop#Multiple_Loops

Topic Closed

This topic has been closed to new replies.

About this Topic