<div class="row_item_blog img_width">
<article class="article_blog">
<ul id="ajax-posts2" class="list_article_blog">
<?php if ( have_posts() ) : $count = 0; while ( have_posts() ) : the_post(); $count++; ?>
<li <?php if ($count % 2 == 0 ) { ?> >
<a href="<?php the_permalink(); ?>" class="link_article_blog">
<?php echo get_the_post_thumbnail(get_the_ID()); ?>
<div class="item_text_list_article_blog">
<?php $cats = get_the_category($id); ?>
<p class="division_ar_bl"><?php echo $cats[0]->name; ?></p>
<div class="text_list_article_blog">
<h3 class="title_list_article_blog"><?php the_title(); ?></h3>
<p class="sub_title_list_article_blog"><?php echo carbon_get_post_meta( get_the_ID(),'post_subtitle' ); ?></p>
</div>
</div>
</a>
</li>
<?php } ?>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</article>
<div class="item_news_blog">
<ul class="list_news_blog img_width">
<?php if ( have_posts() ) : $count = 0; while ( have_posts() ) : the_post(); $count++; ?>
<li <?php if ($count % 2 ) { ?> >
<a href="<?php the_permalink(); ?>"><?php echo get_the_post_thumbnail(get_the_ID()); ?></a>
<?php $cats = get_the_category($id); ?>
<a class="rublic_news_blog" href="<?php get_category_link( $cats ); ?>"><?php echo $cats[0]->name; ?></a>
<h3 class="title_news_blog"><a href="<?php the_permalink(); ?>"><?php the_title(); ?> <span><?php echo carbon_get_post_meta( get_the_ID(),'post_subtitle' ); ?></span></a></h3>
</li>
<?php } ?>
<?php endwhile; ?>
<?php endif; ?>
</ul>
</div>
</div>
Очень сильно выручили!