Tuesday, June 18, 2019

How to display editor image from custom field with image property as id?

<?php

$image = get_field('editor_image');
$size = 'full'; // (thumbnail, medium, large, full or custom size)

if( $image ) {

$image=wp_get_attachment_image( $image, $size );

}

?>
<?php echo $image; ?>

No comments:

Featured Post

Make money online

https://www.wpbeginner.com/beginners-guide/make-money-online/?fbclid=IwAR0_9_5aHmbB4rDisaPevdnO4uAgo0N9heHgPu1TjerjurE5ilD2NyzeB2A

Popular Posts