From 48489aa9fa75ca0275f92bf34ff7c66d41dd99c6 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Wed, 20 May 2026 10:55:42 +0200 Subject: [PATCH] ENHANCE Pass current post type to post card template for improved context --- includes/api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api.php b/includes/api.php index d62652e..3424549 100644 --- a/includes/api.php +++ b/includes/api.php @@ -96,6 +96,7 @@ function build_posts($request) while ($posts_query->have_posts()) : $posts_query->the_post(); get_template_part('template-parts/components/cards/post-card', null, array( 'ID' => get_the_ID(), + 'current_post_type' => $post_type )); endwhile; else :