'post','posts_per_page' =>$count_posts,'field'=> 'id'); $portfolio_query = new WP_Query($args); if( $portfolio_query->have_posts() ) { while($portfolio_query->have_posts()) : $portfolio_query->the_post(); ?>
'img-responsive'); if(has_post_thumbnail()) { the_post_thumbnail('',$img); } else { ?> ';?>