Hello. I will check it out and get back to you.
Thanks.
Hi Joelle.
Please download the updated plugin. This should fix your issue.
Howard
Thread Starter
Joelle
(@joelle)
Hi there. π Thanks for looking at that so quickly. I ran your upgrade, but nothing has changed. It still shows me only published posts. Is there an option that can be worked into the settings, maybe? like a checkbox option or something so people can say “show future, published” or “future” only or whatever? Or maybe I’m just doing something wrong, but I can’t figure out how to get it to show me the future posts other than the filter you posted before.
It does work for me. Maybe you’re doing something wrong? If you’re not logged in though, how would a user see the future posts? Either way, the carousel item does show, but only a logged in user with view other’s posts would be able to see the actual post.
Here’s a working version: https://www.duckdiverllc.com/carousel-test/
add_filter('dd_carousel_filter_query_args', 'filter_carousel', 10, 2);
function filter_carousel($args, $carouselID){
if ($carouselID == 2139){
$args = array(
'post_status' => 'future'
);
return $args;
}
}
-
This reply was modified 6 years, 1 month ago by
thehowarde.
Thread Starter
Joelle
(@joelle)
Hmmm… I just copied your snippet posted above and changed it for my carousel and still, it shows nothing. If I remove the snippet, it totally shows all published posts. Do I need to check something in the settings? I currently have it set to show latest posts — should I select something else?
Lots of sites use future posts to show calendars and they’re not logged in. I am logged in and I still don’t see it. We’re showing future posts already on the site using other snippets and plugins. It’s possible it’s a conflict, but I can’t imagine with what, we’re just calling a basic query for future posts only. I can email you the link if you want, but you won’t see it. haha!
Thread Starter
Joelle
(@joelle)
Ah! I needed to set the post_type because it’s not the default. It’s a CPT. That worked! Another snippet I’ve got makes it display the nice URL and to everyone, regardless of log-in status, so I think were good!
Thank you so much for looking at this for me. π