'1',
'meta_query' => array(
array(
'key' => '_thumbnail_id',
'compare' => 'EXISTS'
),
)
);
if(!empty($avocation_blogcategory))
$avocation_args['cat']=$avocation_blogcategory;
$avocation_query = new WP_Query($avocation_args);
if ($avocation_query->have_posts()) : while ($avocation_query->have_posts()) : $avocation_query->the_post();
?>
get_the_title(), 'class' => 'img-responsive')); ?>