Home › Forums › General Issues › Get all values from checkbox › Reply To: Get all values from checkbox
The reason that the field key works and the field name does not is that the field is probably not defined for the current “post” that is being shown, acf is looking for a field that does not exist. When you use the field key ACF does not try to look at the current post and just gets the field that you defined. This is not a bug. When a field is not already saved for a particular post you always need to use the field key. The same holds true for may ACF functions.
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.