<div class="backhad-layout-4 mb-3">
<div class="container had-layout-4">
  <div class="row">
    <div class="col-12 col-md-8">
      <div class="had_img">
      <?php
      $all_posts->the_post(); ?>
      <a href="<?php the_permalink(); ?>" class="card__picture">
        <?php the_post_thumbnail('articlethumb'); ?>
      </a>
      </div>
    </div>
    <div class="col-12 col-md-4">
      <div class="card__overload">
        <a href="<?php the_permalink(); ?>" class="card__overload--link"></a>
        <a href="<?php the_permalink(); ?>" class="card__overload--title">
          <?php the_title(); ?>
        </a>
        <?php  echo '<p class="article__excerpt">' . get_the_excerpt() . '</p>' ;?>
        <div class="card__overload--info">
          <div class="card__overload--author">
            نوشته شده توسط <?php the_author(); ?>
          </div>
          <div class="card__overload--date">
            <?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' پیش'; ?>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</div>