Advertisement
TheIceMage

WP page

May 6th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying pages
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages and that
  7. * other "pages" on your WordPress site will use a different template.
  8. *
  9. * @package WordPress
  10. * @subpackage Twenty_Sixteen
  11. * @since Twenty Sixteen 1.0
  12. */
  13.  
  14. get_header(); ?>
  15.  
  16. <div id="primary" class="content-area">
  17. <main id="main" class="site-main" role="main">
  18. <?php
  19. // Start the loop.
  20. while ( have_posts() ) : the_post();
  21.  
  22. // Include the page content template.
  23. get_template_part( 'template-parts/content', 'page' );
  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.  
  30. // End of the loop.
  31. endwhile;
  32. ?>
  33.  
  34. </main><!-- .site-main -->
  35.  
  36. <?php get_sidebar( 'content-bottom' ); ?> !!!!!NOTE!!!! I deleted this line since I guess it doesn't make sense to have it (was from parent theme) but seemed like it didn't change anything..should I be taking this out?
  37.  
  38. </div><!-- .content-area -->
  39.  
  40. <?php
  41. if(!is_home() || !is_front_page()) {
  42. get_sidebar();
  43. }
  44. ?>
  45. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement