diff --git a/themes/wporg-translate-events-2024/blocks/event-template/index.php b/themes/wporg-translate-events-2024/blocks/event-template/index.php index 0d39dc67..662392dc 100644 --- a/themes/wporg-translate-events-2024/blocks/event-template/index.php +++ b/themes/wporg-translate-events-2024/blocks/event-template/index.php @@ -12,8 +12,9 @@ $query = new \WP_Query( array( - 'p' => intval( $attributes['id'] ), - 'post_type' => Translation_Events::CPT, + 'p' => intval( $attributes['id'] ), + 'post_type' => Translation_Events::CPT, + 'post_status' => array( 'publish', 'draft', 'trash' ), ) );