From 38acce0dd7215517480bbd0840400af0efdc3338 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 11 Apr 2019 00:10:01 +0900 Subject: [PATCH] Fix query single post in event blocks --- 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..a5f9167e 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'] = 'any'; } if ( 'auto' === $this->date && 'any' === $this->status ) {