Support

Account

Home Forums Add-ons Options Page Options Page Repeater breaking footer template Reply To: Options Page Repeater breaking footer template

  • Hey Trishah,
    It looks like there’s a small syntax error in your PHP code. The issue is likely coming from this part:

    <?ph endwhile;
    It should be:

    <?php endwhile; ?>
    Also, for better debugging, try this corrected version of your code:

    <?php if (have_rows(‘social_icons’, ‘option’)) : ?>
    <div class=”social_icons”>
    <?php while (have_rows(‘social_icons’, ‘option’)) : the_row(); ?>
    ” title=”<?php the_sub_field(‘name’); ?>”>
    <?php the_sub_field(‘font_awesome_code’); ?>

    <?php endwhile; ?>
    </div><!– .social_icons –>
    <?php endif; ?>
    This should prevent errors and ensure the loop runs properly.