Home › Forums › General Issues › get_field() not returning values on specific post ID for image › Reply To: get_field() not returning values on specific post ID for image
I’m still having trouble with true-false values. In the above example, there are 2 true-false switches (checkboxes):
$artfile = $artwork[‘artfile’];
$availability = $artwork[‘art-availability’];
From what I read in the documentation, these should be returning 1 for true or 0 for false. However, they are returning empty, regardless of being checked or not. Any ideas?
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.