Advertisement
Guest User

single.php

a guest
Mar 6th, 2014
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php
  2. /**
  3. * The Template for displaying all single posts
  4. *
  5. * @package WordPress
  6. * @subpackage Indian Spice School
  7. */
  8.  
  9. get_header(); ?>
  10.  
  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. /*
  18. * Include the post format-specific template for the content. If you want to
  19. * use this in a child theme, then include a file called called content-___.php
  20. * (where ___ is the post format) and that will be used instead.
  21. */
  22. get_template_part( 'content', get_post_format() );
  23.  
  24.  
  25. // If comments are open or we have at least one comment, load up the comment template.
  26. if ( comments_open() || get_comments_number() ) {
  27. comments_template();
  28. }
  29. endwhile;
  30. ?>
  31. </div><!-- #content -->
  32. </div><!-- #primary -->
  33.  
  34. <?php
  35. get_sidebar( 'content' );
  36. get_sidebar();
  37. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement