Home › Forums › Add-ons › Repeater Field › Getting repeater subfields outside the loop › Reply To: Getting repeater subfields outside the loop
Ok, so after some frustration I got back to what I already had. Went back over the field_groups and over all the fields. When I found that particular fieldname there also were all the sub_fields.
So something like this (typing this out, not copying):
$groups = acf_get_field_groups();
for ($i=0;$i<sizeof($groups);$i++) {
$custom_fields = acf_get_fields( $groups[$i]['ID']);
var_dump( $custom_fields);
}
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.