page.php 590 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * The template for displaying all single posts
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Twenty_One
  9. * @since Twenty Twenty-One 1.0
  10. */
  11. get_header();
  12. /* Start the Loop */
  13. while ( have_posts() ) :
  14. the_post();
  15. get_template_part( 'template-parts/content/content-page' );
  16. // If comments are open or there is at least one comment, load up the comment template.
  17. if ( comments_open() || get_comments_number() ) {
  18. comments_template();
  19. }
  20. endwhile; // End of the loop.
  21. get_footer();