M

1, // set number of post per category here
‘category__in’ => array($cat->term_id)
);

$customInCatQuery = new WP_Query($args);

if ($customInCatQuery->have_posts()) :
echo ‘

‘;
while ($customInCatQuery->have_posts()) : $customInCatQuery->the_post();
require(get_template_directory() . ‘/content-artist.php’);
endwhile;
echo ‘

‘;
?>

name;
endif;
wp_reset_query();
endforeach;
?>