[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwenty/ -> singular.php (source)

   1  <?php
   2  /**
   3   * The template for displaying single posts and pages.
   4   *
   5   * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
   6   *
   7   * @package WordPress
   8   * @subpackage Twenty_Twenty
   9   * @since Twenty Twenty 1.0
  10   */
  11  
  12  get_header();
  13  ?>
  14  
  15  <main id="site-content">
  16  
  17      <?php
  18  
  19      if ( have_posts() ) {
  20  
  21          while ( have_posts() ) {
  22              the_post();
  23  
  24              get_template_part( 'template-parts/content', get_post_type() );
  25          }
  26      }
  27  
  28      ?>
  29  
  30  </main><!-- #site-content -->
  31  
  32  <?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>
  33  
  34  <?php
  35  get_footer();


Generated : Wed Apr 24 08:20:01 2024 Cross-referenced by PHPXref