'; } global $paged; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } elseif ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); } else { $paged = 1; } $args = array( // Choose ^ 'any' or from below, since 'any' cannot be in an array 'post_type' => array( 'post', ), // Pagination Parameters 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $paged, ); $query = new WP_Query( $args ); /* Start the Loop */ while ( $query->have_posts() ) : $query->the_post(); /* * 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. */ $grid_column = get_theme_mod( 'grid_column', 'col-sm-6' ); if ( $grid_column === 'col-sm-6' ) { $grid_column = 'col-lg-6 col-md-12'; } elseif ( $grid_column === 'col-sm-4' ) { $grid_column = 'col-sm-12 col-md-6 col-lg-4'; } elseif ( $grid_column === 'col-sm-3' ) { $grid_column = 'col-sm-12 col-md-6 col-lg-3'; } if ( 'grid' == $get_blog_layout ) { echo '
'; } get_template_part( 'template-parts/content', get_post_type() ); if ( 'grid' == $get_blog_layout ) { echo '
'; } endwhile; if ( 'grid' == $get_blog_layout ) { echo '
'; } echo ''; else : get_template_part( 'template-parts/content', 'none' ); endif; ?>