Home › Forums › Add-ons › Repeater Field › Nested Repeater fields not working › Reply To: Nested Repeater fields not working
You cannot do this
$rows = get_field('criteria_details');
loop over this array and then attempt to use get_sub_field() on a nested repeater
if (have_foes('files', $row);
$row in the above case has no meaning to ACF.
You must either
1) Use a have_rows() loop for both the parent and child repeaters
2) Access the sub repeater in the original array $row['files']
;
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.