'; $i = 0; while ( have_posts() ) : the_post(); $i++; /* * Include the Post-Type-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Type name) and that will be used instead. */ switch ( get_theme_mod( '_blog_post_style','list' ) ) { case 'list': echo '
'; break; case 'grid-2': echo '
'; break; case 'grid-3': echo '
'; break; case 'grid-4': echo '
'; break; case 'list-grid': if( $i == 1 ){ echo '
'; }else{ echo '
'; } break; case 'list-grid-infinite': if( $i == 1 ){ echo '
'; }else{ echo '
'; if( $i == 3 ){ $i=0; } } break; default: echo '
'; } get_template_part( 'template-parts/content', get_post_type() ); echo '
'; endwhile; echo '
'; the_posts_navigation(); else : get_template_part( 'template-parts/content', 'none' ); endif; ?>