Home>Support>Post Loop not displaying chosen categories

Post Loop not displaying chosen categories

I have a general blog page here:

https://www.ecoself.net/blog/

I use the Post Loop Widget to display this general blog page and have the widget settings to include various category taxonomies, which all work perfectly.

However, I want to create a new Page with a blog post loop on it that:

1/. Displays only one category taxonomy (“projects”)
2/. Does NOT display that category on the general blog page.

To achieve this I,

1/. Set up a new “project” category;

2/. Set up a test Post with the new “project” category selected;

2/. Set up a new Page with a Post Loop Widget on it with the taxonomy “project” selected.

When I set this up however I get,

1/. The new page with Post Loop Widget and “project’ category taxonomy selected does NOT display anything and;

2/. The general blog page displays the new “project” category post even though it’s not listed to do so in the taxonomy!

So I achieve neither of my goals!

Please can you help?

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

  1. 1 year, 4 months ago Andrew Misplon Hi, I Work Here

    Hi David

    Thanks for reaching out.

    1/. The new page with Post Loop Widget and “project’ category taxonomy selected does NOT display anything and;

    To confirm, is there only one post in this new category? Is that post definitely published? When you edit the Post Loop widget the post count is in the red circle, is it 1 or 0?

    2/. The general blog page displays the new “project” category post even though it’s not listed to do so in the taxonomy!

    In the Additional field you can add cat=-x where x is the category ID to exclude.

  2. 1 year, 4 months ago David Key

    Hi Andrew,

    I think I’ve discovered something that’s causing the problem – but am not sure how to fix it.

    Basically, it looks like the Post Loop Widget doesn’t work at all on the SiteOrigin Corp Theme. It seems that I can allocate a page for blogs to appear on in the Customise setting, but I can’t control which categories show up. It’s every post or none.

    If I create a new page with a Page Loop Widget, I can’t get it to display anything at all – regardless of the taxonomy.

    This is why I was getting the issues I raised. I couldn’t remove a post category from a loop or have a loop with just one category showing because the widget doesn’t work at all. I was confused because I have a PLW setup on my default ‘blog’ page – it turns out this wasn’t doing anything because all the posts were set to appear on that page by theme default anyway. When I delete the widget, all the posts remain on the page!

    So… how do I have two pages showing blog articles. One showing all of them EXCEPT one category, the other one showing ONLY one category?

    Would really appreciate your help…

    Thank you.

    Dave

  3. 1 year, 4 months ago Andrew Misplon Hi, I Work Here

    Hi David

    Thanks for your feedback.

    It seems that I can allocate a page for blogs to appear on in the Customise setting, but I can’t control which categories show up. It’s every post or none.

    This is correct default WordPress behaviour for the assigned posts (blog) page. It’ll be the same if you switch to say Twenty Twenty theme.

    If I create a new page with a Page Loop Widget, I can’t get it to display anything at all – regardless of the taxonomy.

    The Post Loop widget does work by default in Corp. We’re using it for all of the blog layouts in the demo https://demo.siteorigin.com/corp/.
    Please, take a screenshot of your Post Loop widget settings, the query settings, upload it to imgur.com or similar and send us the link.

    Please, note that no content will be displayed on the assigned blog page, only the posts feed will appear there. Once a page has been assigned as the posts/blog page, the content field doesn’t work at all. This is the default WordPress behaviour. You must go to SettingsReading or the matching Customizer setting and deselect the posts page for the content of that page to appear.

  4. 1 year, 4 months ago Andrew Misplon Hi, I Work Here

    So… how do I have two pages showing blog articles. One showing all of them EXCEPT one category, the other one showing ONLY one category?

    Both pages must use the Post Loop widget. At SettingsReading neither of the two pages you’re working on must be selected as the posts page.

  5. 1 year, 4 months ago David Key

    Hi Andrew,

    Thanks for your help.

    I have now:

    1/. Setup a Page called Journal;

    2/. Setup a Page called Projects2;

    3/. Put a Post Loop Widget on the Journal Page and set the Additional option cat=-projects to exclude the ‘projects’ category (screen shot attached);

    4/. Put a Post Loop on Projects2 and set the taxonomy to category-project;

    5/. Neither of these Pages are set as the blog page in Settings>Reading.

    The Projects2 Page now displays correctly, showing only Posts with the category project. But the Journal page is still showing Posts with the category project even though I have added the Additional code to exclude them.

    It’s like the Additional code is wrong or not working. Please can you have a look at the screen shot and tell me if I have made a mistake?

    https://imgur.com/a/C2hLtJe <https://imgur.com/a/C2hLtJe&gt;

    Thanks again, I really appreciate your support.

    Best Wishes,

    Dave

  6. 1 year, 4 months ago Andrew Misplon Hi, I Work Here

    Hi Dave

    Super, glad to hear you’re making progress.

    Does it help if you change project to the ID of the category you’re removing? The ID is visible in the URL when editing the category.

  7. 1 year, 4 months ago David Key

    Yes! Perfect!

    Thank you.

    D.

  8. 1 year, 4 months ago Andrew Misplon Hi, I Work Here

    Super, glad to hear both pages are now showing posts as required.

    If questions arise in the future, please, let us know.

    Cheers for now :)

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