Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. <?php
  2.  
  3. get_header();
  4. ?>
  5.  
  6. <div id="primary" class="content-area">
  7. <main id="main" class="site-main">
  8.  
  9. <?php
  10. if ( have_posts() ) :
  11.  
  12. if ( is_home() && ! is_front_page() ) :
  13. ?>
  14. <header>
  15. <h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
  16. </header>
  17. <?php
  18. endif;
  19.  
  20. /* Start the Loop */
  21. while ( have_posts() ) :
  22. the_post();
  23.  
  24. /*
  25. * Include the Post-Type-specific template for the content.
  26. * If you want to override this in a child theme, then include a file
  27. * called content-___.php (where ___ is the Post Type name) and that will be used instead.
  28. */
  29. get_template_part( 'template-parts/content', get_post_type() );
  30.  
  31. endwhile;
  32.  
  33. the_posts_navigation();
  34.  
  35. else :
  36.  
  37. get_template_part( 'template-parts/content', 'none' );
  38.  
  39. endif;
  40. ?>
  41.  
  42. </main><!-- #main -->
  43. </div><!-- #primary -->
  44.  
  45. <?php
  46. get_sidebar();
  47. get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement