Home › Forums › Add-ons › Repeater Field › Selecting a nested repeater field value without looping. › Reply To: Selecting a nested repeater field value without looping.
I found it 🙂
<?php
$one = $rows[0]['nested_repeater_field_name'][0]['sub_field_name'];
?>
Somehow I added the answer in the question.
Just make sure each value is an array when going deeper in the array.
$one = $rows[array][array][array]['sub_field_name']
Peace out!
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.