Created
February 5, 2018 16:42
-
-
Save jmdrawneek/e2f095acbe9529665ebca012e7188362 to your computer and use it in GitHub Desktop.
Simple WP template
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 /* Template Name: Blank */ ?> | |
<?php get_header(); ?> | |
<div class="row"> | |
<div id="primary" class="content-area small-12 large-8 columns"> | |
<?php | |
if ( have_posts() ) : ?> | |
<main id="main" class="site-main" role="main"> | |
<?php while ( have_posts() ) : the_post(); | |
get_template_part( 'template-parts/content', 'page' ); | |
// If comments are open or we have at least one comment, load up the comment template. | |
if ( comments_open() || get_comments_number() ) : | |
comments_template(); | |
endif; | |
endwhile; // End of the loop. ?> | |
</main><!-- #main --> | |
<?php else : | |
echo 'No posts found'; | |
endif; | |
?> | |
</div><!-- #primary --> | |
<?php | |
get_sidebar(); ?> | |
</div><?php // row. ?> | |
<?php get_footer(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment