[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-content/themes/twentyten/ -> index.php (source)

   1  <?php
   2  /**
   3   * Main template file
   4   *
   5   * This is the most generic template file in a WordPress theme
   6   * and one of the two required files for a theme (the other being style.css).
   7   * It is used to display a page when nothing more specific matches a query.
   8   * E.g., it puts together the home page when no home.php file exists.
   9   * Learn more: https://developer.wordpress.org/themes/basics/template-hierarchy/
  10   *
  11   * @package WordPress
  12   * @subpackage Twenty_Ten
  13   * @since Twenty Ten 1.0
  14   */
  15  
  16  get_header(); ?>
  17  
  18          <div id="container">
  19              <div id="content" role="main">
  20  
  21              <?php
  22              /*
  23               * Run the loop to output the posts.
  24               * If you want to overload this in a child theme then include a file
  25               * called loop-index.php and that will be used instead.
  26               */
  27              get_template_part( 'loop', 'index' );
  28              ?>
  29              </div><!-- #content -->
  30          </div><!-- #container -->
  31  
  32  <?php get_sidebar(); ?>
  33  <?php get_footer(); ?>


Generated: Thu Sep 19 01:00:03 2019 Cross-referenced by PHPXref 0.7.1