Home › Forums › Add-ons › Repeater Field › Nested Repeater fields not working
We have encountered an issue with my implementation and would greatly appreciate your assistance.
The specific problem I am facing involves retrieving file data from a repeater field within another repeater field. I have reviewed the documentation and community forums, but I’m still unable to resolve the issue.
Please refer the below screen-shots. screen shot 1 for my ACF field Structure
Your expertise in resolving this matter would be immensely helpful. If there are any specific details or steps I might be overlooking, please let me know.
Result i want — inside accordion body i want to show file-name and file-link as a link .
Please find the attached screen-shot of my code..
Actual URL for Reference – https://iqac.flame.edu.in/naac/quality-framework-indicators/criteria-01/
https://p23.zdusercontent.com/attachment/48506/MUDNLO5YarTJggXlzxozN1qOT?token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..6ZgU425ds1IwmcLkDQpZUg.lr_qAiBx1Lcxs1qcXwD3p7q_aVcOp3zDewly4oCV71zkOozUUyKZ5pQQcipAcjKggsQNDVLc-YN5SGlhGueybE8hUqZ75nmYRWLGrJLAMMINjBNONxO6uSrxDQV54T6gMQbPpVmC0aBVnsV7nX1Y0Uoo0ADxdF8HlhAoCoGcUdF8acKYWrQZk3Ad3ZDVV8fZkH1k1FABV90nhWFDYSpVUELyGVBJB9zOqiiwZ50BquXifkuMwqGZcjaH6mmNB0poALoRwJg3LI6A_hPgiWNp_d52LO-yCkYlpqd4_4rNb7c.8qOwPoR8aPD0wQHxUwjk9g
Above link for code screen-shot

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'];
You must be logged in to reply to this topic.
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.