'post', 'posts_per_page'=> $ecommerce_star_option['slider_max_items'] , 'cat'=> $ecommerce_star_option['slider_cat'] , 'order' => 'DESC'); $loop = new WP_Query($args); $count = $loop->post_count; if($count==0): if ( class_exists( 'WP_Customize_Control' ) ) { ?>