I’m having trouble preventing past events from showing in certain areas of my site. I’ve set ‘eventDisplay’ => ‘upcoming’ but past events are still coming through.
Here is my full query:
$my_query = new WP_Query( array(
‘post_type’ => ‘tribe_events’,
‘post__in’ => get_option( ‘sticky_posts’ ),
‘eventDisplay’ => ‘upcoming’,
‘posts_per_page’ => 3
) );
I’m using the Sticky Custom Post Types plugin to pull these posts into a slideshow, per Jonah’s suggestion in a support thread, which is why I have get_option(‘sticky_posts’) included. I’ve tested this with all other plugins except for Sticky Custom Post Types deactivated and still encountered the issue.
Any help in resolving this issue would be greatly appreciated.
Thanks,
Jason