Home Forums ACF PRO If next date in loop… Reply To: If next date in loop…

  • It’a more or a general PHP/WP question.

    It looks like you are setting every “tab” to active. Basically, if you have you posts ordered so that they are all in the future then the first one will always be the soonest event. You already have a counter so I think this should work
    <?php if ($counter == 0) { echo 'active'; }