Skip to content

Instantly share code, notes, and snippets.

@jerewall
Last active August 29, 2015 14:15
Show Gist options
  • Save jerewall/d91affc36ff96e929279 to your computer and use it in GitHub Desktop.
Save jerewall/d91affc36ff96e929279 to your computer and use it in GitHub Desktop.
<?php $my_query = new WP_Query( 'posts_per_page=3' );
while ( $my_query->have_posts() ) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<div class="entry">
<h3><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
<a class="readmore" href="<?php the_permalink(); ?>">Read more &#187;</a>
</div>
<?php endwhile; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment