I want to show thumbnails next to my posts in archive page, however it only shows thumbnails if the posts has a featured image.
So i want to show thumbnail for the image attached to the post, but i dont know how to.
At the moment i am using the following code to show thumbnails if set as featured.
<?php if ( has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail(thumbnail, array('class' => 'alignleft')); ?>
</a>
<?php endif; ?>
Here is the website http://n1bar.com/category/blog As you can see the first post has an attached image but is not being displayed as thumbnail in the archive page.
Any help is appreciated