FIX selectin only published articles in post query
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2025-09-30 16:55:12 +02:00
parent 350880a925
commit a2d62a80fa
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ switch_to_blog(2);
$args = array( $args = array(
'post_type' => 'revues', 'post_type' => 'revues',
'post_status' => 'publish',
'posts_per_page' => 1, 'posts_per_page' => 1,
'orderby' => 'date', 'orderby' => 'date',
'order' => 'DESC', 'order' => 'DESC',

View File

@ -6,6 +6,7 @@ switch_to_blog(2);
$args = array( $args = array(
'post_type' => 'revues', 'post_type' => 'revues',
'post_status' => 'publish',
'posts_per_page' => 1, 'posts_per_page' => 1,
'orderby' => 'date', 'orderby' => 'date',
'order' => 'DESC', 'order' => 'DESC',