Home › Forums › General Issues › image is not shown in acf › Reply To: image is not shown in acf
okay i think i found the bug.
I have now selected “Single-line text” as the field type for the import.
<?php if( get_field('image') ): ?>
<img src="<?php the_field('image'); ?>" />
<?php endif; ?>
So the picture is now also shown to me.
I think I will now add an “if query” to ask whether an image is “uploaded” as text, or in the traditional way using the field type “image”.
Or are there suggestions for improvement?
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.