WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have about 100 posts, and I want to create pages that only show 10 on each. How would I go about this?

share|improve this question
up vote 1 down vote accepted

You need to add the following query argument: posts_per_page

global $query_string;
query_posts( $query_string . '&posts_per_page=10' );
share|improve this answer
Ok I did that. It shows 10, but how do I get a list of pages now? – Jeff May 10 '11 at 16:28
What are you exactly talking about? I thought you want to have a "paged" page template. If you add pagination [1] after the loop, then you can click through your posts (10 per page). [1] codex.wordpress.org/Function_Reference/paginate_links – kaiser May 10 '11 at 16:31
added that and got nothing.. hmm – Jeff May 10 '11 at 16:54
Please take a look at the "Examples" section at the provided link. – kaiser May 10 '11 at 16:58
Yup got it. Cool. – Jeff May 10 '11 at 18:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.