ACF & Bootstrap Gallery Shows Blank Slides [closed] July 28, 2022 by Tarik Billa change the condition like this, if ( ($counter % $divider == 0) && $total > $counter) : ?>