ACF Image Insert in PRO / new!

Hi,
i used the shortcode {{acf:field_name}} to display a custom field (image), but it´s not working this way…
in an old thread, it was not solved…

now, its just showing the ID or the URL or the array…

The one showing now is set in the layout.

Thanks,
cyrock

Hi There @cyrock

Thanks for writing in! Upon testing this issue further, I was able to experience the same issue on my test site as well.

Per their documentation, it only supports simple text based output: https://www.advancedcustomfields.com/resources/shortcode/

It is still possible to use an image field. You just need to set the “Return Value” to a the Image URL when setting up your custom field (https://www.advancedcustomfields.com/resources/image/)

So that it is possible to output inside an image HTML tag
<img src="IMG_URL">

Thanks!

1 Like

Hi, thanks for respond. not simple this way. This SC seems not to be very comfortable. I used standarttemplate now…

You’re most welcome.
If you need anything else we can help you with, don’t hesitate to open another thread.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.