Home › Forums › ACF PRO › Randomize Repeater Rows… › Reply To: Randomize Repeater Rows…
What’s being returned by
$repeater = get_field('contributors_grid','option');
// try echoing it to see it it's an array
echo $repeater;
There are times when this might return an array, but there are other times when it will just return the number of rows in the repeater. It is unclear to me why there is inconsistent behavior like this when getting a repeater.
You may need to loop through the repeater to get the values before you can randomize them.
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.