Last active
August 29, 2015 14:15
-
-
Save jerewall/d91affc36ff96e929279 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 »</a> | |
</div> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment