• I want to create a carousel of posts using the loop shortcode, how do I add a class only to the first looped post?
    Example:
    [loop type=post tag=sponsor]
    if(first_post):
    <div class=”active-item”>…</div>
    endif;
    [loop]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add class to the first looped post’ is closed to new replies.