WordPress.org

Ready to get started?Download WordPress

Forums

Excluding Categories from Recent Posts (3 posts)

  1. iamharlan
    Member
    Posted 5 years ago #

    Hey...I tried to find this in the codex, but was unable to. If someone has seen this answered, please direct me....

    I am attempting to use WordPress as a CMS, and everything is runnning really smoothly so far. One small issue, is that I end up with a lot of duplicate posts on each page.

    The way that I would like the blog to be set up is that everything fits into one of two categories. Then, I will also have featured articles, and a lead story. I have that working, but when I upload a lead story or featured story, it ends up in the most recent posts side of the front page as well.

    You can see what I mean here: http://www.theparadigmexchange.com

    Is there a way to keep the posts in those categories, but exclude them from the front page's recent posts if they are also in the "lead story" or "featured" categories?

    Thanks for your help!
    Harlan

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    I see you've customized Darren Hoy't Mimbo Theme.
    Exclude category/ies in query posts by finding ID number of category. Add the following to query posts in your theme calling for the list of posts in such and such category
    e.g. cat=-3,-2
    assumung ID lead story is 3 and ID featured is 2
    good luck

  3. iamharlan
    Member
    Posted 5 years ago #

    That worked...it took me a second, because that section of the site uses an array to get the categories. I was able to add that to another section though...so it works.

    Thanks....

    Oh, and yes, I am using the Mimbo theme. I really like it. It's taken a while to customize it just the way I want it, and I've got a little ways to go. Speaking of, I am about to post another forum question...if you can help, it would be greatly appreciated...

Topic Closed

This topic has been closed to new replies.

About this Topic