Grid misunderstanding

I have made this grid and I would like to add the date below div containing the post on the top right. The thing is that whenever I add the_date(), the template breaks. BTW not all the dates are displayed. Can anybody help ?

Thank you

<section id="grille_actus">

<?
if ( have_posts() ) : while ( have_posts() ) : the_post();

        // Si vous avez besoin d'accéder à $post->ID par exemple
        global $post;

        get_template_part('actu');
endwhile; endif;?>

</section>
<div class="test">
<div class="col-md-4 col-lg-4 col-sm-6 col-xs-12">
  <div class="le_post_entier">
    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('actus'); ?></a>
    <div class="col-md-12 postbody">

          <a href="<?php the_permalink(); ?>"><?php the_title(); ?>
      </div>
    <a class="cta" href="<?php the_permalink(); ?>">DÉCOUVRIR →</a>
  </div>

</div>
</div>

Read more here: Grid misunderstanding

Leave a Reply

Your email address will not be published. Required fields are marked *