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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.