Fix query single post in event blocks (2nd try)
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user