When your website means business.

ACF | Type: PHPACF Images: ID

By using the ID, you can specify which crop size of the image and even get the name of the file!
NOTE: select ID option when creating custom field.

$image = get_field('image');
if( !empty( $image ) ): ?>
    <img src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
<?php endif; ?>

Reference Links

We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Cookies Notice