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.
Need fast email support? Get SiteOrigin Premium
Replies
1Hi 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.