Home>Support>Exclude sub-parent posts from a parent category archive

Exclude sub-parent posts from a parent category archive

Hello SiteOrigin Helpers

This seems to be a fairly frequent WordPress hack but I’m hoping that SiteOrigin has a simple solution.

Using Vantage, is it possible to exclude posts in a sub-category from appearing in the parent category archive? At the moment when I click on the category archive page I get a list of all the postings in that category and the sub-categories mixed in together. Is it possible to filter out the sub-category posts so that only posts to the parent category are shown?

If you know of any widget that comes close to doing this I’d appreciate it.

Thanks for your attention.

URL: http://www.enticknap.com.au

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Hi enticknap

    There is unfortunately nothing native to Vantage that can do this. I had hoped we could do something with the Post Loop widget in Page Builder and query_posts but no dice there either.

    I gave this plugin a try and it seems to work well:

    https://wordpress.org/plugins/no-sub-category-posts-in-loop/

  2. 9 years, 10 months ago enticknap

    Hi Andrew
    Thanks for the quick reply. Beautiful – that works. I appreciate your help with this and the theme in general – it’s great to work with.
    Cheers
    enticknap

  3. 9 years, 10 months ago Andrew Misplon
    Hi, I Work Here

    Awesome, glad to hear that did the trick. All the best.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More