wp/wp-content/themes/twentyfourteen/taxonomy-post_format.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    24 			<?php if ( have_posts() ) : ?>
    24 			<?php if ( have_posts() ) : ?>
    25 
    25 
    26 			<header class="archive-header">
    26 			<header class="archive-header">
    27 				<h1 class="archive-title">
    27 				<h1 class="archive-title">
    28 					<?php
    28 					<?php
    29 						if ( is_tax( 'post_format', 'post-format-aside' ) ) :
    29 					if ( is_tax( 'post_format', 'post-format-aside' ) ) :
    30 							_e( 'Asides', 'twentyfourteen' );
    30 						_e( 'Asides', 'twentyfourteen' );
    31 
    31 
    32 						elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
    32 						elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
    33 							_e( 'Images', 'twentyfourteen' );
    33 							_e( 'Images', 'twentyfourteen' );
    34 
    34 
    35 						elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
    35 						elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
    55 				</h1>
    55 				</h1>
    56 			</header><!-- .archive-header -->
    56 			</header><!-- .archive-header -->
    57 
    57 
    58 			<?php
    58 			<?php
    59 					// Start the Loop.
    59 					// Start the Loop.
    60 					while ( have_posts() ) : the_post();
    60 			while ( have_posts() ) :
       
    61 				the_post();
    61 
    62 
    62 						/*
    63 				/*
    63 						 * Include the post format-specific template for the content. If you want to
    64 				 * Include the post format-specific template for the content. If you want to
    64 						 * use this in a child theme, then include a file called called content-___.php
    65 				 * use this in a child theme, then include a file called content-___.php
    65 						 * (where ___ is the post format) and that will be used instead.
    66 				 * (where ___ is the post format) and that will be used instead.
    66 						 */
    67 				 */
    67 						get_template_part( 'content', get_post_format() );
    68 				get_template_part( 'content', get_post_format() );
    68 
    69 
    69 					endwhile;
    70 					endwhile;
    70 					// Previous/next page navigation.
    71 					// Previous/next page navigation.
    71 					twentyfourteen_paging_nav();
    72 					twentyfourteen_paging_nav();
    72 
    73