Support

Account

Home Forums Feature Requests Image field to show image from external URL without using WP Media

Solving

Image field to show image from external URL without using WP Media

  • Hi ACF Community,

    is there any way to create a “Image Field” inside a custom field group and make that field take a image from a external image url instead as from wordpress media.

    There are quite many plugins around to make the featured image or product images take images from external urls, but none of them can handle custom image fields which are created on ACF…

    That feature, with WP RestAPI would be one of the nicest things to have with wordpress.

  • I don’t know what plugins you are talking about, but a URL field could be used to enter an image from an external source.

  • 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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.