Home › Forums › Backend Issues (wp-admin) › get_field() – strange behaviour › Reply To: get_field() – strange behaviour
I can’t really give you a better way to debug because I cannot recreate the issue that you’re seeing.
Is get_field() returning and empty array, false
or NULL
, there is a difference. false
could mean that the field/data exists but is empty, although I would expect it to be returning an empty array. NULL
would mean that the value/data does not exist (is not present in the database) for the post.
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.