wp/wp-content/themes/twentythirteen/archive.php
changeset 10 372f2766ea20
parent 7 cf61fcea0001
equal deleted inserted replaced
9:177826044cd9 10:372f2766ea20
     8  * If you'd like to further customize these archive views, you may create a
     8  * If you'd like to further customize these archive views, you may create a
     9  * new template file for each specific one. For example, Twenty Thirteen
     9  * new template file for each specific one. For example, Twenty Thirteen
    10  * already has tag.php for Tag archives, category.php for Category archives,
    10  * already has tag.php for Tag archives, category.php for Category archives,
    11  * and author.php for Author archives.
    11  * and author.php for Author archives.
    12  *
    12  *
    13  * @link https://codex.wordpress.org/Template_Hierarchy
    13  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
    14  *
    14  *
    15  * @package WordPress
    15  * @package WordPress
    16  * @subpackage Twenty_Thirteen
    16  * @subpackage Twenty_Thirteen
    17  * @since Twenty Thirteen 1.0
    17  * @since Twenty Thirteen 1.0
    18  */
    18  */
    33 					elseif ( is_year() ) :
    33 					elseif ( is_year() ) :
    34 						printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
    34 						printf( __( 'Yearly Archives: %s', 'twentythirteen' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentythirteen' ) ) );
    35 					else :
    35 					else :
    36 						_e( 'Archives', 'twentythirteen' );
    36 						_e( 'Archives', 'twentythirteen' );
    37 					endif;
    37 					endif;
    38 				?>
    38 					?>
    39 				</h1>
    39 				</h1>
    40 			</header><!-- .archive-header -->
    40 			</header><!-- .archive-header -->
    41 
    41 
    42 			<?php /* The loop */ ?>
    42 			<?php /* The loop */ ?>
    43 			<?php
    43 			<?php
    44 			while ( have_posts() ) :
    44 			while ( have_posts() ) :
    45 				the_post();
    45 				the_post();
    46 ?>
    46 				?>
    47 				<?php get_template_part( 'content', get_post_format() ); ?>
    47 				<?php get_template_part( 'content', get_post_format() ); ?>
    48 			<?php endwhile; ?>
    48 			<?php endwhile; ?>
    49 
    49 
    50 			<?php twentythirteen_paging_nav(); ?>
    50 			<?php twentythirteen_paging_nav(); ?>
    51 
    51