Guest User

Untitled

a guest
Jan 12th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. $query = new WP_Query();
  2.  
  3. if( $query->have_posts()): while($query->have_posts()): $query->the_post();
  4.  
  5. get_template_part( 'template-parts/page/content', 'page' );
  6.  
  7. // If comments are open or we have at least one comment, load up the comment template.
  8. if ( comments_open() || get_comments_number() ) :
  9. comments_template();
  10. endif;
  11.  
  12. endwhile; // End of the loop.
  13. endif;
Add Comment
Please, Sign In to add comment