ENHANCE Pass current post type to post card template for improved context
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Antoine M 2026-05-20 10:55:42 +02:00
parent 26896828f4
commit 48489aa9fa

View File

@ -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 :