wp/wp-content/themes/twentyfourteen/single.php
changeset 7 cf61fcea0001
parent 5 5e2f62d02dcd
equal deleted inserted replaced
6:490d5cc509ed 7:cf61fcea0001
    11 
    11 
    12 	<div id="primary" class="content-area">
    12 	<div id="primary" class="content-area">
    13 		<div id="content" class="site-content" role="main">
    13 		<div id="content" class="site-content" role="main">
    14 			<?php
    14 			<?php
    15 				// Start the Loop.
    15 				// Start the Loop.
    16 				while ( have_posts() ) : the_post();
    16 			while ( have_posts() ) :
       
    17 				the_post();
    17 
    18 
    18 					/*
    19 				/*
    19 					 * Include the post format-specific template for the content. If you want to
    20 				 * Include the post format-specific template for the content. If you want to
    20 					 * use this in a child theme, then include a file called called content-___.php
    21 				 * use this in a child theme, then include a file called content-___.php
    21 					 * (where ___ is the post format) and that will be used instead.
    22 				 * (where ___ is the post format) and that will be used instead.
    22 					 */
    23 				 */
    23 					get_template_part( 'content', get_post_format() );
    24 				get_template_part( 'content', get_post_format() );
    24 
    25 
    25 					// Previous/next post navigation.
    26 				// Previous/next post navigation.
    26 					twentyfourteen_post_nav();
    27 				twentyfourteen_post_nav();
    27 
    28 
    28 					// If comments are open or we have at least one comment, load up the comment template.
    29 				// If comments are open or we have at least one comment, load up the comment template.
    29 					if ( comments_open() || get_comments_number() ) {
    30 				if ( comments_open() || get_comments_number() ) {
    30 						comments_template();
    31 					comments_template();
    31 					}
    32 				}
    32 				endwhile;
    33 				endwhile;
    33 			?>
    34 			?>
    34 		</div><!-- #content -->
    35 		</div><!-- #content -->
    35 	</div><!-- #primary -->
    36 	</div><!-- #primary -->
    36 
    37