Каким образом можно добавить новый блок div в foreach после 2 интеграций?
foreach ($group_by_year as $year_name => $year_posts) {
$i++;
?>
<div class="col-sm-6 col-md-4 opt_timeline_text_layout">
<div class="inside">
<h2 class="uppercase">
<?= $year_name ?>
</h2>
<?
echo '<ul>';
foreach ($year_posts as $post) {
echo '<li><a href="' . get_the_permalink() . '">' . get_the_title($post->ID) . '</a></li>';
}
echo '</ul>';
?>
</div>
</div>
// ТУТ БЛОК - <div class="clearfix hidden-sm hidden-xs"></div>
<div class="col-sm-6 col-md-4 opt_timeline_image_layout">
<img
src=""
data-src="<?
the_post_thumbnail_url(); ?>"
alt="" class="img-responsive unveil has-loadings" style="opacity: 1;">
<noscript><img
src="<?
the_post_thumbnail_url(); ?>"/>
</noscript>
</div>
<?
}