single.php 816 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php declare( strict_types = 1 ); ?>
  2. <?php
  3. /**
  4. * The template for displaying all single posts
  5. *
  6. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  7. *
  8. * @package Seedlet
  9. * @since 1.0.0
  10. */
  11. get_header();
  12. ?>
  13. <section id="primary" class="content-area">
  14. <main id="main" class="site-main" role="main">
  15. <?php
  16. /* Start the Loop */
  17. while ( have_posts() ) :
  18. the_post();
  19. get_template_part( 'template-parts/content/content-single' );
  20. seedlet_the_post_navigation();
  21. // If comments are open or we have at least one comment, load up the comment template.
  22. if ( comments_open() || get_comments_number() ) {
  23. comments_template();
  24. }
  25. endwhile; // End of the loop.
  26. ?>
  27. </main><!-- #main -->
  28. </section><!-- #primary -->
  29. <?php
  30. get_footer();