singular.php 565 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * The template for displaying single posts and pages.
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package WordPress
  8. * @subpackage Twenty_Twenty
  9. * @since Twenty Twenty 1.0
  10. */
  11. get_header();
  12. ?>
  13. <main id="site-content" role="main">
  14. <?php
  15. if ( have_posts() ) {
  16. while ( have_posts() ) {
  17. the_post();
  18. get_template_part( 'template-parts/content', get_post_type() );
  19. }
  20. }
  21. ?>
  22. </main><!-- #site-content -->
  23. <?php get_template_part( 'template-parts/footer-menus-widgets' ); ?>
  24. <?php get_footer(); ?>