51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying all single posts
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
|
|
*
|
|
* @package WowPress
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<section id="primary">
|
|
<main id="main">
|
|
|
|
<?php
|
|
/* Start the Loop */
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
get_template_part( 'template-parts/content/content', 'single' );
|
|
|
|
if ( is_singular( 'post' ) ) {
|
|
// Previous/next post navigation.
|
|
the_post_navigation(
|
|
array(
|
|
'next_text' => '<span aria-hidden="true">' . __( 'Next Post', 'wowpress' ) . '</span> ' .
|
|
'<span class="sr-only">' . __( 'Next post:', 'wowpress' ) . '</span> <br/>' .
|
|
'<span>%title</span>',
|
|
'prev_text' => '<span aria-hidden="true">' . __( 'Previous Post', 'wowpress' ) . '</span> ' .
|
|
'<span class="sr-only">' . __( 'Previous post:', 'wowpress' ) . '</span> <br/>' .
|
|
'<span>%title</span>',
|
|
)
|
|
);
|
|
}
|
|
|
|
// If comments are open, or we have at least one comment, load
|
|
// the comment template.
|
|
if ( comments_open() || get_comments_number() ) {
|
|
comments_template();
|
|
}
|
|
|
|
// End the loop.
|
|
endwhile;
|
|
?>
|
|
|
|
</main><!-- #main -->
|
|
</section><!-- #primary -->
|
|
|
|
<?php
|
|
get_footer();
|