Home>Support>Filtering Blog Page

Filtering Blog Page

Hi there

I am trying to limit the categories on the blog page, something like this:

But I can’t find the file used to prepare the loop ! It’s not in one of the files I usually use

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, 5 months ago Ian Messenger

    Something like this should work, but I can’t find the file to put it in!

     <?php query_posts('cat=xx); ?> 
  2. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    Hi Ian

    Thanks for reaching out.

    The easiest way within the SiteOrigin toolbox of doing this would be to:

    1. Settings > Reading, revert the Posts Page selection, that is don’t select any page.

    2. Go to your Blog page, click over to the Page Builder tab, insert a Post Loop widget, we’ll skip the query builder and go straight to the Additional field at the bottom, insert either a positive or negative query:

    Pos:

    cat=x,y,z
    

    Neg:

    cat=-x,-y,-z
    

    OR use the query builder to build up your query by selecting taxonomies etc.

    Hope that helps.

  3. 9 years, 5 months ago Ian Messenger

    That works, many thanks

  4. 9 years, 5 months ago Andrew Misplon
    Hi, I Work Here

    For sure, glad we could help.

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