current_post; $total_post_count = $wp_query->found_posts; if( $post_count % 5 == 0 ) { $article_layout = 'classic-post'; echo '
'; } else { if( $post_count == 1 || $post_count == 6 ) { echo '
'; } $article_layout = 'grid-post'; } if( has_post_thumbnail() ) { $post_class = 'has-thumbnail'; } else { $post_class = 'no-thumbnail'; } ?>
>
', '' ); if ( 'post' === get_post_type() ) : ?>
'; } else { if( $post_count == 4 || $post_count == 9 || $post_count == $total_post_count-1 ) { echo '
'; } } ?>