'post','posts_per_page'=>$buzznews_slider_count,'cat'=>$buzznews_slider_category_post_id );
$q = new WP_Query( $args );
while($q->have_posts()): $q->the_post();
$post_list[] = $q->post;
if( $count < 4 and has_post_thumbnail( $q->post ) ):
if( $buzznews_post_is_exclusive ):
$first_post[] = array_shift($post_list);
elseif( has_post_thumbnail( $q->post ) ):
$first_post[] = $q->post;
endif;
endif;
$count++;//increment the file
endwhile; // End of the loop.
// wp_reset_postdata();
foreach ( $first_post as $post_item ) :
?>
ID) ){
echo get_the_post_thumbnail($post_item->ID, 'buzznews-main-slider');
}else{
echo sprintf( '
',BUZZNEWS_THEME_IMG.'countdown.png',get_the_title() );
}
?>
ID ) );
get_buzznews_post_timedate( $post_item->ID );
?>