page.php 871 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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 may use a
  8. * different template.
  9. *
  10. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  11. *
  12. * @package photos
  13. */
  14. get_header();
  15. ?>
  16. <div id="primary" class="content-area">
  17. <main id="main" class="site-main">
  18. <?php
  19. while ( have_posts() ) :
  20. the_post();
  21. get_template_part( 'template-parts/content', 'page' );
  22. // If comments are open or we have at least one comment, load up the comment template.
  23. if ( comments_open() || get_comments_number() ) :
  24. comments_template();
  25. endif;
  26. endwhile; // End of the loop.
  27. ?>
  28. </main><!-- #main -->
  29. </div><!-- #primary -->
  30. <?php
  31. get_sidebar();
  32. get_footer();