Home › Forums › General Issues › get_fields not returning a specific value › Reply To: get_fields not returning a specific value
I was using update_field(‘field_name’, $id) not the field key. And perhaps this was the issue.
Largely the issue was that when I would use get_field
it was returning a field with the wrong key…or at least differing from what was the expected key.
As you pointed out, this may very well have been related to me using field_names instead of keys when updating a field.
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.