Fix query single post in event blocks (2nd try)

This commit is contained in:
savvasha
2019-04-10 18:54:24 +03:00
parent 6530c57d40
commit 732fe4a777

View File

@@ -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 ) {