Skip to content

Instantly share code, notes, and snippets.

@mikejolley
Created May 7, 2014 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikejolley/89d9a4a2156ae4013de5 to your computer and use it in GitHub Desktop.
Save mikejolley/89d9a4a2156ae4013de5 to your computer and use it in GitHub Desktop.
Sample single.php loop
<?php while ( have_posts() ) : the_post(); ?>
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
</div><!-- .entry-content -->
<?php endwhile; // end of the loop. ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment