This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Carousel Query addition to exclude some tags

7 years ago · Last reply by Alex S 7 years ago

Hi there,

I’m using the PB carousel query to display some posts. Id like to set up additional query code to exclude posts with multiple specific tags from the carousel. For example the Tag Id’s 9,10 and 11.

I searched and looked at these old posts and was hoping if there is a solution now

WooCommerce Canvas + Post loop Additional query arguments


(exclude more then one tag was not possible at that time)

Exclude or include pages in Post Loop Widget (PB)


(somewhat related, i tried in additional field: cat=-id, -id, -id etc but this won’t work)

Thanks a lot

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Alex S Staff 7 years, 11 months ago

    Hi Robberthooij,

    This is possible by using tag__not_in (related). Please open the Carousel widget and open the Query options. Set the Additional field up to exclude your undesired tag ids. You can find the tag ids by navigating to WP AdminPostsTags and open the relavent tag. You’ll find the tag ID in the url:

    So for example for the tag I want to exclude (tag id is above), I would use:

    tag__not_in=43

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.

Have a different question or issue?

Start New Thread