Home › Forums › Add-ons › Repeater Field › Select random custom field from nested repeater › Reply To: Select random custom field from nested repeater
Hi @studio1337,
You can always get the repeater content using get_field() function. You can see the content of the repeater field using a code like this:
print_r(get_field('section_content'));
This way you can generate a random number as the index of the returned array.
I hope this makes sense.
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.