Skip to content

Instantly share code, notes, and snippets.

@jmdrawneek
Created February 5, 2018 16:42
Show Gist options
  • Save jmdrawneek/e2f095acbe9529665ebca012e7188362 to your computer and use it in GitHub Desktop.
Save jmdrawneek/e2f095acbe9529665ebca012e7188362 to your computer and use it in GitHub Desktop.
Simple WP template
<?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