1,
‘post_status’ => ‘publish’
);
$featured_query = new WP_Query($featured_args);

if ($featured_query->have_posts()) :
while ($featured_query->have_posts()) : $featured_query->the_post();
$featured_id = get_the_ID(); // Store the featured post ID to exclude later
?>

Featured

6min


Latest


‘name’,
‘parent’ => 0
));

foreach ($categories as $category) :
// Skip empty categories
if ($category->count == 0) continue;
?>