[ Index ]

PHP Cross Reference of WordPress

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" role="main">
  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 get_footer(); ?>


Generated: Fri Dec 13 01:00:03 2019 Cross-referenced by PHPXref 0.7.1