No Image Displayed Using ACF ID Return
-
Hi All
Within the boxes below partners, I wanted to display an image which is uploaded onto the news page which I have set as an ID return within the ACF settings and used the following from ACF
<?php
$image = get_field(‘pi1’);
$size = ‘partnersponsorbox’; // (thumbnail, medium, large, full or custom size)if( $image ) {
echo wp_get_attachment_image( $image, $size );
}
?>
I have declared the “partnersponsorbox” in my functions, but it appears to be not rendering anything in the source code.
- The topic ‘No Image Displayed Using ACF ID Return’ is closed to new replies.