Skip to content

Instantly share code, notes, and snippets.

@ckschmieder
Created October 17, 2016 17:07
Show Gist options
  • Save ckschmieder/4d6b86f07171ea5927d14996a0a28caf to your computer and use it in GitHub Desktop.
Save ckschmieder/4d6b86f07171ea5927d14996a0a28caf to your computer and use it in GitHub Desktop.
<?php
/**
* The template for displaying all single posts.
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package AAFP
*/
get_header(); ?>
<div id="primary" class="content-area primary">
<?php get_sidebar(); ?>
<main id="main" class="site-main" role="main">
<?php
while ( have_posts() ) : the_post();
get_template_part( 'template-parts/content', get_post_format() );
the_post_navigation();
// 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 -->
</div><!-- #primary -->
<?php
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment