WordPress.org

Ready to get started?Download WordPress

Forums

Displaying multiple categories? (4 posts)

  1. cLin
    Member
    Posted 10 years ago #

    I was wondering since I have 5 categories how I would display categories 1-4 and not the fifth one a user views my weblog?

  2. codergurl
    Member
    Posted 10 years ago #

    put $cat = '-5'; before the includes in your template

  3. cLin
    Member
    Posted 10 years ago #

    well, that works but not for what I plan on doing. Sorry should've been more descriptive. I wanted to have 2 columns of news, cat 5 being on the left side and the rest of the cats being on the right side. Like, on my left side would be my weblog and my right side would be my weird news/articles/updates I find

  4. skippy
    Member
    Posted 10 years ago #

    The quick-and-dirty solution would be to include conditional logic to check the category for each post served in The_Loop. Create two divs, one for the left and one for the right (see http://www.glish.com/css for help, if you need it). Then have your conditional logic output the post with the proper div (cat5 = leftdiv, everything else = rightdiv).
    See here for a more complicated suggestion:
    http://wordpress.org/support/index.php?action=vthread&forum=10&topic=3773

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.