array( 'post', ), // Pagination Parameters 'posts_per_page' => get_option('posts_per_page'), 'paged' => $paged ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : $get_blog_layout = get_theme_mod('front_post_layout'); if (is_home() && ! is_front_page()) : ?>

'; } /* 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( 'front_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/content', 'frontpage'); if ('grid' == $get_blog_layout) { echo '
'; } endwhile; if ('grid' == $get_blog_layout) { echo '
'; } $pagination_alignment = get_theme_mod('front_page_pagination', 'center'); echo '
'; echo paginate_links( array( 'total' => $query->max_num_pages, 'type' => 'list', 'current' => max(1, $paged), ) ); echo '
'; else : get_template_part('template-parts/content/content', 'none'); endif; wp_reset_postdata(); ?>