Home › Forums › General Issues › Echo image field › Reply To: Echo image field
Hi, am also having issues displaying an image, no error at all, this is the code I am using:
<img src="<?php the_field('photos'); ?>" alt="" />
But it displays a weird image path:
<img src="59, , logo, , , image/png, http://url.com/wp-content/uploads/2018/02/logo.png, 100, 100, Array" />
I tried the other codes from your site, but still, not pointing to the incorrect path, it adds extra data…
I am a Drupal guy, sort of new to word press but picked it up pretty quick!
Thanks
Hector
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.