WordPress.org

Ready to get started?Download WordPress

Forums

Excluding Categories in The Loop (5 posts)

  1. nesurfari
    Member
    Posted 9 years ago #

    Please! Please Please! Need some help... On my surf report main page I want to display the latest updated reports(todays) from different areas.
    http://www.nesurfari.com/surf-report/

    Right now I have two areas and two loops. I want the first loop to display only Category 1 (Nantucket Report) and the the second loop to display only category 2 (Gloucester Report). Eventually, as I add more reports I'll add more loops for other categories.

    I tried the "Exclude Posts From Some Category" for WP 1.5 on the Loop page in the Codex http://codex.wordpress.org/The_Loop
    but could not get it to work. All that would show up was "Sorry, no posts matched your criteria." I did it on the bottom loop of my page and choose to exclude CAT 1 but it came up with the "Sorry" no match. I looked for other similar things in the support pages but couldn''t really find the solution. Any help would be greaty appreciated! Mahalo

  2. nesurfari
    Member
    Posted 9 years ago #

    Forgot to add that the two loop areas are seperated by the Firefox banner ad. So the first loop and second one are the same right now. I just want the Nantucket report in the top loop and then the Gloucester report in the bottom. Happy Easter!!!!!

  3. divrom
    Member
    Posted 9 years ago #

    Did u take note of the info in the Codex about not being about to call a loop twice?

  4. Root
    Member
    Posted 9 years ago #

    Why not use query post for the first call. And the single cat parameter for the second ?

  5. Kafkaesqui

    Posted 9 years ago #

    I agree with Root, that would seem the best option. Dig a little deeper down on The Loop page to see an example of query_posts() defining a category to display.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags