I would like to display post thumbnail and excerpt side by side but even if post hasn't got a thumbnail its div still there to be seen. How could I disappear thumbnail's parent div?
So far I've tried following but did not work.
<!-- post thumbnail -->
<?php if( has_post_thumbnail()) : { ?>
<div class="thumb-image">
<?php the_post_thumbnail(); ?>
</div>
<?php } ?>
<?php endif; ?>