Skip to content

Instantly share code, notes, and snippets.

@ryanshoover
Created April 7, 2017 03:18
Show Gist options
  • Select an option

  • Save ryanshoover/ef12b2a0cdf8654b8556e8c7a5afd835 to your computer and use it in GitHub Desktop.

Select an option

Save ryanshoover/ef12b2a0cdf8654b8556e8c7a5afd835 to your computer and use it in GitHub Desktop.
Simple Loop
<?php
get_header();
while ( have_posts() ) : the_post();
the_title();
the_content();
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
endwhile; // End of the loop.
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment