'portfolio',
'posts_per_page' => -1,
);
$the_query = new WP_Query( $args );
if( $the_query->have_posts() ) :
while( $the_query->have_posts() ): $the_query->the_post();
if( ! has_post_thumbnail() ) continue;
get_template_part( 'content', 'portfolio' );
endwhile;
endif;
wp_reset_postdata();
?>