CoreFiles by mySites.guru
index.php38 lines, 930 bytes, from wordpress-5.6-beta2.zip
Raw History Compare with 5.6-beta1
md5
2695f149479b43fec121599bca7c1dc7
sha1
2f26434cf20e1812e38d6cb2af44cc250ef5f3fa
sha256
fa6aa0697a7b9c22443e65165921b71e6018eca133b1a35c285fa5fa32c40768
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Twenty_One
 * @since 1.0.0
 */

get_header();

if ( have_posts() ) {

	// Load posts loop.
	while ( have_posts() ) {
		the_post();

		get_template_part( 'template-parts/content/content', get_theme_mod( 'display_excerpt_or_full_post', 'excerpt' ) );
	}

	// Previous/next page navigation.
	twenty_twenty_one_the_posts_navigation();

} else {

	// If no content, include the "No posts found" template.
	get_template_part( 'template-parts/content/content-none' );

}

get_footer();

The same content is in 10 releases, WordPress 5.6-beta1 to 5.6. See them all, or every version of this file.