<?php
// check for thumbnail
$thumb = get_post_meta($post->ID, 'full-image', $single = true);
// check for thumbnail class
$thumb_class = get_post_meta($post->ID, 'Thumbnail Class', $single = true);
// check for thumbnail alt text
$thumb_alt = get_post_meta($post->ID, 'Thumbnail Alt', $single = true);
?>
<?php // if there's a thumbnail
if($thumb !== '') { ?>
<a href="<?php the_permalink() ?>">
<img src="<?php echo $thumb; ?>" class="<?php if($thumb_class !== '') { echo $thumb_class; } else { echo "floatleft-thumb"; } ?>"
alt="<?php if($thumb_alt !== '') { echo $thumb_alt; } else { echo the_title(); } ?>"
/></a>
<?php } // end if statement
// if there's not a thumbnail
else { echo ''; } ?>
We use essential cookies to make this site work, and optional cookies to enhance your experience.