WordPress.org

Ready to get started?Download WordPress

Forums

Using multiple loops with categories that overlap (3 posts)

  1. EnderatEros
    Member
    Posted 7 years ago #

    Hi all,
    I have to sections, a "most recent review" section, and a "most recent features" section. here's the code I have for it so far: http://slexy.org/paste/91
    The problem starts on line 16, where I want the most recent review (that's not already featured) to be up. But if there's an article that is in both categories, and the value of the query is set to 1, then only the featured section will show an article, and the recent reviews wont.

    Which is why I have the value set to two. But that's the problem. If the article isn't in both categories, then TWO posts will show up in the recent reviews section, and that won't look good for the design.

    So anyone know how to fix this? If so I'd be greatful for you to help me out on this. I've been through the codex multiple times and have browsed the forums with no luck.
    Thanks,
    Takumi

    PS. I'm using WP 2.0.4

  2. EnderatEros
    Member
    Posted 7 years ago #

    It'd be great is someone could help me out with this. I'd be really thankful!... and I really doubt this is just one of those "oh this guy doesn't know how to use loops" things. So please, just take a look.

  3. Monika
    Member
    Posted 7 years ago #

    You tell wp "do not show duplicate postings" in all of your loops and so I think thats the beginning of your problem..

    because a post in both of this categories is a duplicate entry

    I hope you understand my meanings

    regards
    Monika

Topic Closed

This topic has been closed to new replies.

About this Topic