
<!-- Start the Loop. -->
<?php 
global $post;
if (have_posts()) : while (have_posts()) : the_post(); ?>
<li class="post"  id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="post-img-wrapper">
<div class="post-img">
<?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
<a href="<?php get_permalink() ?>"> <?php the_post_thumbnail('post_thumbnail_loop'); ?></a>
<?php } ?>
</div>  
</div>
<div class="clearfix"></div>
<div class="blog-info-content"><p><?php the_content(); ?></p>
<a href="<?php the_permalink() ?>"><button class="load-more"><?php _e('Read more', 'portfoliolite'); ?></button></a>
</div> 
</li> 
<?php endwhile;
else: ?>
<div class="post">
  <p>
    <?php _e('sorry no post matched your criteria!', 'portfoliolite'); ?>
  </p>
</div>
<?php endif; ?>
<!--End post-->