'post',
'posts_per_page' => 5,
'cat' => (int) $cat->term_id,
'ignore_sticky_posts' => true,
]);
if (!$query->have_posts()) {
wp_reset_postdata();
continue;
}
$query->the_post();
$lead_id = get_the_ID();
$leadCats = get_the_category();
$leadLabel = !empty($leadCats) ? $leadCats[0]->name : $cat->name;
?>