Skip to content

Instantly share code, notes, and snippets.

@trufa
Created January 28, 2013 20:40
Show Gist options
  • Save trufa/4658794 to your computer and use it in GitHub Desktop.
Save trufa/4658794 to your computer and use it in GitHub Desktop.
<?php
global $query_string;
query_posts($query_string . "posts_per_page=10");
if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<?php endwhile;
endif; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('Previous entries') ?></div>
<div class="alignright"><?php previous_posts_link('Next entries') ?></div>
</div>
<?php wp_reset_query(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment