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 :