Home › Forums › General Issues › array showing in img output › Reply To: array showing in img output
Hi @brody182
If an array is showing in the img src attribute, then you have set the return type of the image field to ‘Image Object’. This will return an array of data and cannot be simple ‘echoed’ into the img tag.
Please read the image field docs to understand how to get the URL
Thanks
E
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.