Skip to content

Instantly share code, notes, and snippets.

@seanbehan
Created May 2, 2012 21:29
Show Gist options
  • Save seanbehan/2580661 to your computer and use it in GitHub Desktop.
Save seanbehan/2580661 to your computer and use it in GitHub Desktop.
The Loop
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<div class="<?php the_class(); ?>">
<a href="<?php the_permalink(); ?>"> <?php the_title(); ?> </a>
<?php the_time(); ?>
<p><?php the_content(); ?></p>
</div>
<?php endwhile; endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment