This is driving me batty. Is my syntax wrong? Why is the first "." in my img src call throwing out an error? This works if I put a hard link in the img src call, FYI.
<a class="blog-image" href="<?php the_permalink(); ?>">
<?php if (has_post_thumbnail() ) {
the_post_thumbnail('medium-size');
} else {
echo '<img src="' . bloginfo('stylesheet_directory'); . '/img/ogpimage.png" alt="Blog Posts Placeholder">';
} ?>
</a>