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
Just 7? Is that < 7.1.0 or >= 7.1.0,
although if your trying to get the count of a repeater then is should be returning an number.
get_sub_field() does not take a post ID argument. This may sound like a stupid question, but are you sure it’s a repeater?
The reason I’m asking these questions is that the only reason that this should be getting a false value is that there is actually a value in the database and for some reason it’s being interpreted as false rather than whatever is store in the db.
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.