<!-- version 2 = boucle sur toutes les catégories puis les affiches Affiche aussi les miniatures de leurs 4 derniers articles --> 
<div class="container is-fluid"> 
 
        <?php 
        $last = get_categories(); 
        foreach($last as $cat){ 
        ?> 
 
  <section class="section blog"> 
    <div class="container"> 
      <div class="columns is-vcentered"> 
        <div class="column"> 
          <h2 class="title is-spaced"><?php echo $cat->name;//the_category() ?></h2> 
          <p class="subtitle"><?php echo $cat->category_description;//category_description();?></p> 
          <a href="<?php echo site_url().'/?cat='. $cat->term_id;?>">Voir !</a> 
        </div> 
        <div class="column"> 
          <div class="columns is-multiline"> 
 
            <?php 
              $args = array( 
                'posts_per_page' => 4, 
                'cat' => $cat->term_id, 
              ); 
              $recent = new WP_Query($args); 
              while($recent->have_posts()) : $recent->the_post(); 
            ?> 
 
            <div class="column is-6"> 
              <a href="<?php the_permalink() ?>"> 
                <picture> 
                  <?php the_post_thumbnail(); ?> 
                </picture> 
              </a> 
            </div> 
            <?php endwhile; ?> 
        </div> 
      </div> 
    </div> 
  </section> 
        <?php } ?> 
</div>