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!
ACF’s Repeater field is a versatile solution for repeating content in #WordPress.
— Advanced Custom Fields (@wp_acf) December 29, 2022
What’s your favorite use case for the Repeater field?
What’s the weirdest thing you’ve ever used it for?
Let us know!👇
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.