Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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; ?>
Source by www.advancedcustomfields.com #
 
PREVIOUS NEXT
Tagged: #image #acf
ADD COMMENT
Topic
Name
4+6 =