Home › Forums › Add-ons › Repeater Field › First row of repeater field that returns Image Object › Reply To: First row of repeater field that returns Image Object
Well, I wasn’t thinking about getting a repeater in that fashion, I was assuming that you’d be using a ‘while(have_rows())’ loop.
You have several choices. You can get the entire repeater with no formatted values
$rows = get_field('slider', false, false);
and then do all the formatting yourself,
or you can get the repeater twice
$formatted_rows = get_field('slider');
$unformatted_rows = get_field('slider', false, false);
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.