Created
May 11, 2018 03:54
-
-
Save JordanNZ/52c83902dfbec62c7826dfffe52201d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( have_posts() ) : | |
$i = 0; | |
?> | |
<div id="primary" class="content-area"> | |
<main id="main" class="site-main" role="main"> | |
<section class="row posts-loop <?php if ('grid' == $blog_layout) { echo esc_attr('flex-row'); } ?>" | |
<?php /* Start the Loop */ | |
while ( have_posts() ) : the_post(); | |
if ( $i == 0 && ! is_paged() ) { | |
?> | |
<div class="post-wrapper <?php echo $post_column; ?>"> | |
<?php get_template_part( 'template-parts/post/content', $post_template ); ?> | |
</div> | |
<?php | |
} else { | |
get_template_part( 'template-parts/post/content', 'none' ); | |
} | |
$i++; | |
endwhile; | |
?> | |
</section> | |
<?php the_posts_navigation(); ?> | |
</main><!-- #main --> | |
</div><!-- #primary --> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment