From c8276ba10ddba9a2207ac503cd7de7111b8348c5 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 17 Feb 2026 14:55:24 +0100 Subject: [PATCH] REFINE Simplifying post rendering by replacing inline markup with reusable post-card component --- .../components/archive/latest-parutions.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/template-parts/components/archive/latest-parutions.php b/template-parts/components/archive/latest-parutions.php index 1e1ca5c..9aae8bc 100644 --- a/template-parts/components/archive/latest-parutions.php +++ b/template-parts/components/archive/latest-parutions.php @@ -24,19 +24,8 @@ $current_post_type = $args['current_post_type'] ?? get_post_type(); - -
-
- - $current_post_type, - 'current_post_id' => $post->ID - )); ?> - - ID, 'medium'); ?> -

ID); ?>

-
-
-
+ get_the_ID(), + )); ?> \ No newline at end of file