This works for excluding posts by category from infinite scroll loop perfectly
-
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.
Viewing 1 replies (of 1 total)
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.