Skip to content

Instantly share code, notes, and snippets.

@zachary-russell
Last active December 16, 2015 04:48
Show Gist options
  • Save zachary-russell/5379259 to your computer and use it in GitHub Desktop.
Save zachary-russell/5379259 to your computer and use it in GitHub Desktop.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><?php the_title(); ?><h2>
<?php the_post_thumbnail(); ?>
<?php the_excerpt(); ?>
<?php endwhile; else: ?>
<p>Sorry, no posts exist</p>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment