Home › Forums › Add-ons › Flexible Content Field › get_field returns null for repeatable field in flexible content field › Reply To: get_field returns null for repeatable field in flexible content field
I just ran into this same issue with the Flexible Content layouts and I am still getting an error on get_sub_field.
The only difference is get_field()
returns NULL
and get_sub_field()
returns bool(false)
The odd thing is that the rest of the loop works just fine with while( have_rows() )
and I can loop through this and retrieve my data.
My layout is called Testimonials and the name is the same. My repeater in this layout is called has a field name of testimonials_module
.
Any Ideas?
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.