Skip to content

Instantly share code, notes, and snippets.

@flymke
Created November 9, 2020 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flymke/d67e075ccc2e6694783ccfb959c0b3a8 to your computer and use it in GitHub Desktop.
Save flymke/d67e075ccc2e6694783ccfb959c0b3a8 to your computer and use it in GitHub Desktop.
single-door.php
<?php
/**
* The template for displaying all single posts
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
*
* @package WP_Bootstrap_Starter
*/
get_header(); ?>
<section id="primary" class="content-area col-sm-12 col-lg-8">
<div 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.
?>
</div><!-- #main -->
</section><!-- #primary -->
<?php
get_sidebar();
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment