$slider_cat_id , 'posts_per_page' => $no_of_slider ); $query = new WP_Query($args); if($query->have_posts()):?>