single.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * The template for displaying all single posts
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  6. *
  7. * @package Radcliffe 2
  8. */
  9. get_header(); ?>
  10. <div id="primary" class="content-area">
  11. <main id="main" class="site-main">
  12. <?php
  13. while ( have_posts() ) : the_post();
  14. get_template_part( 'template-parts/content', 'single' );
  15. // If comments are open or we have at least one comment, load up the comment template.
  16. if ( comments_open() || get_comments_number() ) :
  17. comments_template();
  18. endif;
  19. ?>
  20. <div class="post-nav-wrapper">
  21. <?php
  22. the_post_navigation( array(
  23. 'next_text' => wp_kses( __( '<span class="meta-nav">Next</span> %title', 'radcliffe-2' ), array( 'span' => array( 'class' => array() ) ) ),
  24. 'prev_text' => wp_kses( __( '<span class="meta-nav">Previous</span> %title', 'radcliffe-2' ), array( 'span' => array( 'class' => array() ) ) )
  25. ) );
  26. ?>
  27. </div><!-- .post-nav-wrapper -->
  28. <?php
  29. endwhile; // End of the loop.
  30. ?>
  31. </main><!-- #main -->
  32. </div><!-- #primary -->
  33. <?php
  34. get_sidebar();
  35. get_footer();