From 732fe4a7775d3255a2387da01d2a156f395dccdf Mon Sep 17 00:00:00 2001 From: savvasha Date: Wed, 10 Apr 2019 18:54:24 +0300 Subject: [PATCH] Fix query single post in event blocks (2nd try) --- includes/class-sp-calendar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/class-sp-calendar.php b/includes/class-sp-calendar.php index a4332735..cebd060e 100644 --- a/includes/class-sp-calendar.php +++ b/includes/class-sp-calendar.php @@ -399,6 +399,7 @@ class SP_Calendar extends SP_Secondary_Post { if ( $this->event) { $args['p'] = $this->event; + $args['post_status'] = array( 'publish', 'future' ); } if ( 'auto' === $this->date && 'any' === $this->status ) {