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
To avoid having to query twice, you can set a variable set to 1 outside your loop. In the loop, you add the "active" class when it's equal to 1, then you increment it.