<?php if ( have_posts() ) : $ir = 0; while ( have_posts() ) : the_post();
if ( $ir % 3 !== 0 ) {
get_template_part( 'template-parts/article-wide' );
} else {
get_template_part( 'template-parts/article' );
}
$ir++; endwhile; endif; ?>
<?php if ( have_posts() ) :
$ir = 0;
$count_posts = wp_count_posts();
$published_posts = $count_posts->publish;
while ( have_posts() ) : the_post();
if ( $ir == 0 || ir == $published_posts ) {
get_template_part( 'template-parts/article-big' );
} else {
get_template_part( 'template-parts/article' );
}
$ir++; endwhile; endif; ?>