Answers for "acf display image field"

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
0

wp+get custom field phpto

<div class="about_photo">
		<?php
		$value =get_field('about_photo');
		 echo "<img src='".$value."' width='200px' height='200px'>";
		 ?>
</div>
Posted by: Guest on November-20-2020

Browse Popular Code Answers by Language