<div class="container">
        <div class="row">
             <?php $args = array(
                'post_type' => 'post',
                'posts_per_page' => 2,
                       );
                      $zapis = new WP_Query( $args );
                      if( $zapis->have_posts() ) : ?>
                          <?php while( $zapis->have_posts() ) :
                              $zapis->the_post();
                             ?>
                             <div class="col-lg-6">
                                <img loading="lazy" class="w-100" src="<?php $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail-size', true); echo $thumb_url[0]; ?>">
                                <h2 class="title"><?php the_title(); ?></h2>
                                <a href="<?php the_permalink(); ?>" class="btn btn-warning">Подробнее...</a>
                            </div>
               <?php endwhile; ?>
            <?php endif;
            wp_reset_postdata(); ?>
        </div>
        <div class="row">
             <?php $args = array(
                'post_type' => 'post',
                'posts_per_page' => 3,
                'offset' => 2
                       );
                      $zapis = new WP_Query( $args );
                      if( $zapis->have_posts() ) : ?>
                          <?php while( $zapis->have_posts() ) :
                              $zapis->the_post();
                             ?>
                             <div class="col-lg-4">
                                <img loading="lazy" class="w-100" src="<?php $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail-size', true); echo $thumb_url[0]; ?>">
                                <h2 class="title"><?php the_title(); ?></h2>
                                <a href="<?php the_permalink(); ?>" class="btn btn-warning">Подробнее...</a>
                            </div>
               <?php endwhile; ?>
            <?php endif;
            wp_reset_postdata(); ?>
        </div>
        <div class="row">
             <?php $args = array(
                'post_type' => 'post',
                'posts_per_page' => 2,
                'offset' => 5
                       );
                      $zapis = new WP_Query( $args );
                      if( $zapis->have_posts() ) : ?>
                          <?php while( $zapis->have_posts() ) :
                              $zapis->the_post();
                             ?>
                             <div class="col-lg-6">
                                <img loading="lazy" class="w-100" src="<?php $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id,'thumbnail-size', true); echo $thumb_url[0]; ?>">
                                <h2 class="title"><?php the_title(); ?></h2>
                                <a href="<?php the_permalink(); ?>" class="btn btn-warning">Подробнее...</a>
                            </div>
               <?php endwhile; ?>
            <?php endif;
            wp_reset_postdata(); ?>
        </div>
    </div>