From a93592ea451fb341645387477dc54dd369208d81 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 13 May 2026 11:52:45 +0200 Subject: [PATCH] FEATURE Refining the block to display the correct post types --- plugins/carhop-blocks/build/featured-news/render.php | 10 ++++++---- plugins/carhop-blocks/src/featured-news/render.php | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/plugins/carhop-blocks/build/featured-news/render.php b/plugins/carhop-blocks/build/featured-news/render.php index 9c1c7c2..59c36c1 100644 --- a/plugins/carhop-blocks/build/featured-news/render.php +++ b/plugins/carhop-blocks/build/featured-news/render.php @@ -7,7 +7,7 @@ $featured_items = array(); // QUERY ACTUALITES et AJOUT DES POSTS AU TABLEAU $featured_items switch_to_blog(1); $actualites = new WP_Query(array( - 'post_type' => 'post', + 'post_type' => 'actualites', 'post_status' => 'publish', 'posts_per_page' => $limit, 'orderby' => 'date', @@ -61,9 +61,8 @@ restore_current_blog(); return $b['timestamp'] <=> $a['timestamp']; }); $featured_items = \array_slice($featured_items, 0, $limit); - - ?> +