Home › Forums › Add-ons › Repeater Field › Print array value of sub-field in a repeater › Reply To: Print array value of sub-field in a repeater
Hi @sri
Something like this would work:
<?php
$theatre = $row['theatre_name'];
$theatre = current($theatre);
echo '<li>sub_field_1 = ' . get_the_title($theatre->ID) . ', sub_field_2 = ' . $row['start_date'] .', etc</li>';
?>
Please remember that the relationship will return an array of post objects.
Thanks
E
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.