How to display thumbnail image from custom field ACF - Ybus
5608
post-template-default,single,single-post,postid-5608,single-format-standard,ajax_fade,page_not_loaded,,side_area_uncovered_from_content,qode-child-theme-ver-1.0.0,qode-theme-ver-10.0,wpb-js-composer js-comp-ver-4.12,vc_responsive

How to display thumbnail image from custom field ACF

How to display thumbnail image from custom field ACF

$image = get_field(‘ebook_image’);

$attachment_id = $image[‘ID’];
$size = “large”; // (thumbnail, medium, large, full or custom size)
$image2 = wp_get_attachment_image_src( $attachment_id, $size );

if ($image != “”) {

echo $image2[0] ;

}



Get a free SEO Analysis

from Ybus


Keywords
SEO on Page
Ranking Status
Competion Analysis