ENHANCE Pass current post type to post card template for improved context
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
26896828f4
commit
48489aa9fa
|
|
@ -96,6 +96,7 @@ function build_posts($request)
|
||||||
while ($posts_query->have_posts()) : $posts_query->the_post();
|
while ($posts_query->have_posts()) : $posts_query->the_post();
|
||||||
get_template_part('template-parts/components/cards/post-card', null, array(
|
get_template_part('template-parts/components/cards/post-card', null, array(
|
||||||
'ID' => get_the_ID(),
|
'ID' => get_the_ID(),
|
||||||
|
'current_post_type' => $post_type
|
||||||
));
|
));
|
||||||
endwhile;
|
endwhile;
|
||||||
else :
|
else :
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user