Answers for "how to add image using acf"

PHP
0

image acf

<?php 
$image = get_field('image');
if( !empty( $image ) ): ?>
    <img src="<?php echo esc_url($image['url']); ?>" alt="<?php echo esc_attr($image['alt']); ?>" />
<?php endif; ?>
Posted by: Guest on February-11-2021

Browse Popular Code Answers by Language