get_id() . '_query_args', $query_args, $settings); $loop = new \WP_Query($query_args); // Loop through the posts and do something with them. if ($loop->have_posts()) : lae_get_template_part('addons/posts-carousel/loop-start', $args); while ($loop->have_posts()) : $loop->the_post(); $args['post_id'] = get_the_ID(); lae_get_template_part("addons/posts-carousel/content", $args); endwhile; wp_reset_postdata(); lae_get_template_part('addons/posts-carousel/loop-end', $args); endif;