Home › Forums › General Issues › Image returns ID no matter what Return Value is set › Reply To: Image returns ID no matter what Return Value is set
If an image field is always returning the image ID rather than another value as set in the field setting then this is a symptom of a missing or incorrect field_key in the database, or of something that is interfering with ACF formatting the value as you want. The same thing can happen with any field type that is more than a simple text value.
The first step should be to disable other plugins and switch themes to figure out figure out where the problem might be.
If you are inserting the images in some way other than the post edit or other edit page then check that the field keys are being inserted correctly into the database as well.
The fix listed on the link you sent will work if you can’t fix the cause of the issue.
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.