Advertisement
dreamling

psc-repeating-front-page-includes home

Sep 12th, 2014
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The template for displaying all pages.
  4.  *
  5.  * This is the template that displays all pages by default.
  6.  * Please note that this is the WordPress construct of pages
  7.  * and that other 'pages' on your WordPress site will use a
  8.  * different template.
  9.  *
  10.  * @package Pink Sugar Castle
  11.  */
  12.  
  13. get_header(); ?>
  14.  
  15.     <div id="primary" class="content-area">
  16.         <main id="main" class="site-main" role="main">
  17.  
  18.             <?php while ( have_posts() ) : the_post(); ?>
  19.  
  20.                 <?php get_template_part( 'home', 'page' ); ?>
  21.  
  22.                 <?php
  23.                     // If comments are open or we have at least one comment, load up the comment template
  24.                     if ( comments_open() || '0' != get_comments_number() ) :
  25.                         comments_template();
  26.                     endif;
  27.                 ?>
  28.  
  29.             <?php endwhile; // end of the loop. ?>
  30.  
  31.         </main><!-- #main -->
  32.     </div><!-- #primary -->
  33.  
  34. <?php get_sidebar(); ?>
  35. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement