[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentynineteen/ -> page.php (source)

   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_Nineteen
   9   * @since Twenty Nineteen 1.0
  10   */
  11  
  12  get_header();
  13  ?>
  14  
  15      <div id="primary" class="content-area">
  16          <main id="main" class="site-main">
  17  
  18              <?php
  19  
  20              // Start the Loop.
  21              while ( have_posts() ) :
  22                  the_post();
  23  
  24                  get_template_part( 'template-parts/content/content', 'page' );
  25  
  26                  // If comments are open or we have at least one comment, load up the comment template.
  27                  if ( comments_open() || get_comments_number() ) {
  28                      comments_template();
  29                  }
  30  
  31              endwhile; // End the loop.
  32              ?>
  33  
  34          </main><!-- #main -->
  35      </div><!-- #primary -->
  36  
  37  <?php
  38  get_footer();


Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1