Home>Support>Carousel Widget Build Posts Query

Carousel Widget Build Posts Query

Hi

I am using the Carousel widget and have a question on the “Build posts query”.

I was using the “Additional” to display only child post of certain parents, eg. post_parent=990.

However I want to exclude the current post id from that query, eg. 1153 which itself is a child of 990. So I thought:

post_parent=990&exclude=1153

Which doesn’t work, it still returns the same as post_parent=990

I’ve tried just entering exclude=1153 as well and this doesn’t seem to work.

So either exclude= doesn’t work/isn’t supported or I am doing something wrong.

Could you please advise.

Thanks

Ben

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

  1. 7 years, 11 months ago Alex S
    Hi, I Work Here

    Hi Ben,

    Exclude isn’t a valid option for query_posts. You’ll need to instead use post__not_in but, unfortunately, there’s currently an issue with it (read: it doesn’t work). I’ve logged this as an issue and it’ll likely be fixed in the next version. Very sorry about this!

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