Home › Forums › General Issues › get_field() returning array for Select when no value exists in database › Reply To: get_field() returning array for Select when no value exists in database
I’m still having this problem, even after upgrading to 5.7.1.
It’s exactly as @room34 describes it: A select set to return “value”. On posts that haven’t yet been saved with the new value, I’m expecting no value at all, but getting a 1-length array with the first item as the value.
This is tough to work around, because we’re trying to introduce a feature without having to touch existing posts. I’ll post a bug report.
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.