$noOfPosts, 'type' => 'post', 'ignore_sticky_posts' => 1, 'post_status' => 'publish', 'meta_query' => array( array( 'key' => '_display_posts_location', 'value' => 'slider_post', ) ), ); $fposts = new WP_Query($fposts_args); $count = $fposts->post_count; if ($fposts->have_posts()): $i = 1; ?>
'post', 'posts_per_page' => $noOfPosts, 'post_status' => 'publish', 'meta_query' => array( array( 'key' => '_display_posts_location', 'value' => 'featured_post', ) ), 'ignore_sticky_posts' => 1, ); $fposts = new WP_Query($fposts_args); if ($fposts->have_posts()): ?>
have_posts()): $fposts->the_post(); get_template_part('template-parts/content', 'featuredHome'); endwhile; wp_reset_postdata(); ?>

'post', 'posts_per_page' => $noOfPosts, 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'category__in' => $category, ); $fposts = new WP_Query($fposts_args); if ($fposts->have_posts()): while ($fposts->have_posts()): $fposts->the_post(); get_template_part('template-parts/content', 'post'); endwhile; wp_reset_postdata(); endif; wp_reset_query(); ?>