This simply do the same work and also output the alt
value:
<?php if (has_post_thumbnail()) : ?>
<div class="image"><?php the_post_thumbnail( array(186, 137) ); ?></div>
<?php endif; ?>
See Codex
This simply do the same work and also output the alt
value:
<?php if (has_post_thumbnail()) : ?>
<div class="image"><?php the_post_thumbnail( array(186, 137) ); ?></div>
<?php endif; ?>
See Codex