<section class="recent-post-section">
  <div class="container">
    <div class="row">
      <?php $the_query = new WP_Query( 'posts_per_page=3' ); ?>
      <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>

        <div class="col-md-4">
          <a href="<?php the_permalink();?>"><?php the_post_thumbnail(); ?></a>
          <a href="<?php the_permalink() ?>"><h3><?php the_title(); ?></h3></a>
          <?php the_excerpt(__('(more…)')); ?>
        </div>

        <?php
      endwhile;
      wp_reset_postdata();
      ?>
    </div>
  </div>
</section>
