Advertisement
Guest User

loop.php

a guest
Apr 11th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <?php
  2. if ( have_posts() ) : ?>
  3.  
  4. <div id="infinite-post-wrap" class="section-content-wrapper">
  5. <?php
  6. /* Start the Loop */
  7. while ( have_posts() ) : the_post();
  8.  
  9. /*
  10. * Include the Post-Format-specific template for the content.
  11. * If you want to override this in a child theme, then include a file
  12. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  13. */
  14. get_template_part( 'template-parts/content/content', get_post_format() );
  15.  
  16. endwhile;
  17. ?>
  18. </div> <!-- .section-content-wrapper -->
  19.  
  20. <?php
  21. solid_construction_content_nav();
  22.  
  23. else :
  24.  
  25. get_template_part( 'template-parts/content/content', 'none' );
  26.  
  27. endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement