Home › Forums › Feature Requests › Image field to show image from external URL without using WP Media › Reply To: Image field to show image from external URL without using WP Media
hello! how are you?
I create a URL field and I would like to show the image, I use elementor pro and acf pro.
how can i achieve it?
try using the following but it tells me there is a syntax error.
<?php if( get_field('image') ): ?>
<img src="<?php the_field('image'); ?>" />
<?php endif; ?>
ERROR: sytax error, unexpected ‘<‘, expecting end of file
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.