I have integarted bootstrap carousel into my wordpress. The slides will be taken from the posts which will be tagged as \"featured\" so only 5 recently enter \"featured\" po
Limit the first query to 1 post. In that first loop, set the carousel item class to active. Reset the query and run a second loop, offset by one, and negate the active class, like so:
'post',
'posts_per_page' => 1
));
while ( $the_query->have_posts() ) :
$the_query->the_post();
?>
First Slide
'post',
'offset' => 1
));
while ( $the_query->have_posts() ) :
$the_query->the_post();
?>
Remaining Slides