Home › Forums › Bug Reports › Repeater Field will not Display First Item › Reply To: Repeater Field will not Display First Item
I finally solved this.
I made the mistake with the next repeater I wrote too.
Here’s the code I HAD
<?php if(have_rows('events_repeater')): the_row();?>
<?php while(have_rows('events_repeater')): the_row();?>
If you leave the_row off of BOTH of those lines you’ll get a page that loads garbage forever.
If you have the_row ON BOTH of those, then the first item does not appear.
You need it on only the “while”
<?php if(have_rows('events_repeater')): ();?>
<?php while(have_rows('events_repeater')): the_row();?>
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.