Home › Forums › Add-ons › Repeater Field › Retrieve value from Repeater field and re-use outside of loop › Reply To: Retrieve value from Repeater field and re-use outside of loop
I would suggest you to always first make:
<pre>
print_r( $field );
</pre>
I personally don’t use these functions, i use standard php foreach loop.
Repeater field, especially when it’s nested returns very complex multidimensional array, so maybe first try to simplify your array.
Or you can maybe try to access it like: field[0][tab1][value1][0]
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.