Home › Forums › ACF PRO › Nested repeater fields not working in 5.1.1 › Reply To: Nested repeater fields not working in 5.1.1
Same thing here. To elaborate on the bug, in my case the problem occurs when flexible content field names are duplicated.
e.g.
Flexible Content Layout #1
Name: type1
Fields: subfield1
Flexible Content Layout #2
Name: type2
Fields: subfield1, subfield2, subfield3
get_sub_field(‘subfield1’) will only work for rows of layout ‘type1’. For a row of layout ‘type2’ fields with unique names will display (‘subfield2’, ‘subfield3’), but the field with a duplicate name will return empty (‘subfield1’).
Downgrading to 5.1.0 fixed the problem.
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.