wp/wp-content/themes/twentyfourteen/archive.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    25 			<?php if ( have_posts() ) : ?>
    25 			<?php if ( have_posts() ) : ?>
    26 
    26 
    27 			<header class="page-header">
    27 			<header class="page-header">
    28 				<h1 class="page-title">
    28 				<h1 class="page-title">
    29 					<?php
    29 					<?php
    30 						if ( is_day() ) :
    30 					if ( is_day() ) :
    31 							printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
    31 						printf( __( 'Daily Archives: %s', 'twentyfourteen' ), get_the_date() );
    32 
    32 
    33 						elseif ( is_month() ) :
    33 						elseif ( is_month() ) :
    34 							printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
    34 							printf( __( 'Monthly Archives: %s', 'twentyfourteen' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyfourteen' ) ) );
    35 
    35 
    36 						elseif ( is_year() ) :
    36 						elseif ( is_year() ) :
    44 				</h1>
    44 				</h1>
    45 			</header><!-- .page-header -->
    45 			</header><!-- .page-header -->
    46 
    46 
    47 			<?php
    47 			<?php
    48 					// Start the Loop.
    48 					// Start the Loop.
    49 					while ( have_posts() ) : the_post();
    49 			while ( have_posts() ) :
       
    50 				the_post();
    50 
    51 
    51 						/*
    52 				/*
    52 						 * Include the post format-specific template for the content. If you want to
    53 				 * Include the post format-specific template for the content. If you want to
    53 						 * use this in a child theme, then include a file called called content-___.php
    54 				 * use this in a child theme, then include a file called content-___.php
    54 						 * (where ___ is the post format) and that will be used instead.
    55 				 * (where ___ is the post format) and that will be used instead.
    55 						 */
    56 				 */
    56 						get_template_part( 'content', get_post_format() );
    57 				get_template_part( 'content', get_post_format() );
    57 
    58 
    58 					endwhile;
    59 					endwhile;
    59 					// Previous/next page navigation.
    60 					// Previous/next page navigation.
    60 					twentyfourteen_paging_nav();
    61 					twentyfourteen_paging_nav();
    61 
    62