Home › Forums › ACF PRO › Image field returns a string instead of an array › Reply To: Image field returns a string instead of an array
What code is used to get the image field where you get the string value?
ACF stores the ID of the image in the database, not the image data. Only the ACF field settings allow ACF to return an image object. If you are using get_post_meta() then you’ll only get the image. I’m guessing that you are supplying a field name to the WP Post Distance Filter?
Will need more information about the code that gets and displays the value.
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.