single.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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="main-content" class="main-content inner-wrapper">
  11. <div id="primary" class="content-area">
  12. <div id="content" class="site-content" role="main">
  13. <?php
  14. // Start the Loop.
  15. while ( have_posts() ) : the_post();
  16. /*
  17. * Include the post format-specific template for the content. If you want to
  18. * use this in a child theme, then include a file called called content-___.php
  19. * (where ___ is the post format) and that will be used instead.
  20. */
  21. get_template_part( 'content', get_post_format() );
  22. // Previous/next post navigation.
  23. //twentyfourteen_post_nav();
  24. // If comments are open or we have at least one comment, load up the comment template.
  25. if ( comments_open() || get_comments_number() ) {
  26. comments_template();
  27. }
  28. endwhile;
  29. ?>
  30. </div>
  31. </div><!-- #content -->
  32. </div><!-- #primary -->
  33. <?php
  34. get_sidebar( 'content' );
  35. get_sidebar();
  36. get_footer();