single.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * The Template for displaying all single posts
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Fourteen
  7. * @since Twenty Fourteen 1.0
  8. */
  9. get_header(); ?>
  10. <div id="primary" class="content-area">
  11. <div id="content" class="site-content" role="main">
  12. <?php
  13. // Start the Loop.
  14. while ( have_posts() ) : the_post();
  15. /*
  16. * Include the post format-specific template for the content. If you want to
  17. * use this in a child theme, then include a file called called content-___.php
  18. * (where ___ is the post format) and that will be used instead.
  19. */
  20. get_template_part( 'content', get_post_format() );
  21. // Previous/next post navigation.
  22. twentyfourteen_post_nav();
  23. // If comments are open or we have at least one comment, load up the comment template.
  24. if ( comments_open() || get_comments_number() ) {
  25. comments_template();
  26. }
  27. endwhile;
  28. ?>
  29. </div><!-- #content -->
  30. </div><!-- #primary -->
  31. <?php
  32. get_sidebar( 'content' );
  33. get_sidebar();
  34. get_footer();