Homepage number of posts
-
Hi everyone
I am a member of the admin team for a community blog called Technology Bloggers.We want to show 8 posts on every page – archives, categories etc.
We have done this through WordPress by setting the ‘Blog pages show at most * posts‘ to 8 on the Reading Settings page – /wp-admin/options-reading.phpWe however only want to show 3 on the homepage. To do this we are using this code in the Main Index Template (index.php) file
<?php if( is_home() && !is_paged() ) : global $query_string; query_posts( $query_string . '&posts_per_page=3' ); endif; ?>
The problem is this means that page 2 starts with post 9 (as it assumes page 1/the front page showed the first 8). The front page only shows 3 posts, so I need page 2 to start on post 4, not 9.
Make sense?
Is this possible, if so, please tell me how!
Thanks
Christopher – [signature moderated]
- The topic ‘Homepage number of posts’ is closed to new replies.