Home › Forums › Add-ons › Repeater Field › Unexp › Reply To: Unexp
Did you find a solution for this?
I looked over your code and to be honest I can’t see anything wrong with it.
I’ve found that at time PHP can have strange problems with conditions, I would try changing the while to
while( have_rows( 'photos') && ($imageCounter < $maxNoImages) ):
and maybe isolating that the second part will correct the error.
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.