Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

1 Answer 1

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
1  
Yup got it. Cool. –  Jeff May 10 '11 at 18:10

Your Answer

 
discard

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.