3 * The template for displaying all single posts and attachments
6 * @subpackage Twenty_Fifteen
7 * @since Twenty Fifteen 1.0
12 <div id="primary" class="content-area">
13 <main id="main" class="site-main" role="main">
17 while ( have_posts() ) : the_post();
20 * Include the post format-specific template for the content. If you want to
21 * use this in a child theme, then include a file called called content-___.php
22 * (where ___ is the post format) and that will be used instead.
24 get_template_part( 'content', get_post_format() );
26 // If comments are open or we have at least one comment, load up the comment template.
27 if ( comments_open() || get_comments_number() ) :
31 // Previous/next post navigation.
32 the_post_navigation( array(
33 'next_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Next', 'twentyfifteen' ) . '</span> ' .
34 '<span class="screen-reader-text">' . __( 'Next post:', 'twentyfifteen' ) . '</span> ' .
35 '<span class="post-title">%title</span>',
36 'prev_text' => '<span class="meta-nav" aria-hidden="true">' . __( 'Previous', 'twentyfifteen' ) . '</span> ' .
37 '<span class="screen-reader-text">' . __( 'Previous post:', 'twentyfifteen' ) . '</span> ' .
38 '<span class="post-title">%title</span>',
45 </main><!-- .site-main -->
46 </div><!-- .content-area -->
48 <?php get_footer(); ?>