First page 9 post, the others 10?
-
I am building a theme with two columns.
Every “page” has 10 posts on it. But I want the first page to have 9 posts on it, so I can use one of the post spaces for other things.If I do this the following way, the first page will show post 1 t/m 9 and the second page will show post number 11 t/m 20.
<?php $i=1; while ( (have_posts()) && ($i<11) ): the_post(); ?> <div class="box<?php if($i%2==0) echo '-second'; ?>"> <?php /* The content here */ ?>
I totally understand why this happenes, but I can’t seem te figure out how to do it the right way.
My best “guess” is that I need to use this:query_posts('posts_per_page=5');
But how, I don’t know.
Can someone help me out here?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘First page 9 post, the others 10?’ is closed to new replies.