• Resolved goldsteinsveta

    (@goldsteinsveta)


    I’ve tried to find a solution to exclude posts of a certain category from the loop area of a page and tried different $query things. This works for me perfectly now:

    query_posts($query_string.'&cat=-21,-3');

    and then:

    .home-container article.category-21, .home-container article.category-3 {
    	display: none !important;
    }

    I don’t get why.

    Maybe it helps someone.
    No duplication or grid destruction.

    https://www.ads-software.com/plugins/jetpack/

Viewing 1 replies (of 1 total)
  • Plugin Contributor csonnek

    (@csonnek)

    Happiness Rocketeer ??

    Thank you for that! Hopefully this will be useful to someone in the future.

    Will mark as resolved as it’s sharing information.

Viewing 1 replies (of 1 total)
  • The topic ‘This works for excluding posts by category from infinite scroll loop perfectly’ is closed to new replies.