관리-도구
편집 파일: index.php
<?php get_header(); ?> <div class="innerPagesWrapper"> <div class="pageTitleWrapper"> <h2>Recent Posts</h2> <div class="backToHomePage"> <div class="gradient"></div> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" class="notMobile backToHome"> <i class="fa fa-times"></i> <span> Back To Homepage </span> </a> </div> </div> <hr/> <?php if (have_posts()) : ?> <div class="contentWrapper "> <div class="blogListing"> <?php $i = 1; while ( have_posts() ) : the_post(); ?> <?php /* Include the Post-Format-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 Format name) and that will be used instead. */ ?> <?php if(($i % 3) == 1 && $i != 1) { ?> <div class="cBoth"></div> <?php } get_template_part( 'content', get_post_format() ); ?> <?php $i++; endwhile; //No content else : ?> <?php get_template_part( 'content', 'none' ); ?> <?php endif; ?> </div> </div> <?php wpbeginner_numeric_posts_nav(); ?> </div> <?php get_footer(); ?>