Exclude more than one category from query string looper provider

Hi Themeco team—

I’m using a query string in a looper provider to show recent articles. I want to exclude certain categories from the list. I’ve written this query string:

post_type=post&posts_per_page=60&offset=0&ignore_sticky_posts=1&post__not_in%5B0%5D={{dc:post:id}}&category__not_in=4&category__not_in%5B0%5D=4&orderby=date

This query string works perfectly in excluding one category, but I’m not sure what to do if I want to exclude more than one.

If I try this, it doesn’t work. What am I doing wrong?

post_type=post&posts_per_page=60&offset=0&ignore_sticky_posts=1&post__not_in%5B0%5D={{dc:post:id}}&category__not_in=4&category__not_in%5B0%5D=1,4&orderby=date

Hello @gavn8r,

Thanks for writing to us.

I would suggest you please add this query string and recheck it.

 post_type=post&post_status=publish&offset=0&ignore_sticky_posts=1&post__not_in%5B0%5D={{dc:post:id}}&category__not_in%5B0%5D=4&category__not_in%5B1%5D=1&posts_per_page=60&orderby=date  

Hope it helps
Thanks

Perfect. Thank you!

Hi @gavn8r,

Glad that we are able to help you.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.