Home › Forums › Front-end Issues › How to display image field in a loop? › Reply To: How to display image field in a loop?
Hello!
I tried the above and it wasn’t working for me. I tried outputting $attachment_id in a print_r to see what was in there, and it was much more than just the ID. Seems like the full image’s meta data.
I eventually (90 minutes later) learned it was because my image field was set to return the image object and not the image ID.
Just posting here in case someone else missed this too.
Thanks for reading,
-Tim
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.