'post', 'post_status' => array('publish'), 'order' => 'DESC', 'orderby' => 'date', 'cat' => esc_html($cat), 'posts_per_page' => absint($number_of_lastestpost), 'ignore_sticky_posts' => true, )); // If post is there if( $query->have_posts() ) { ?>
have_posts()) : $query->the_post(); $featured_img_url = get_the_post_thumbnail_url($post->ID,'large'); ?>