• I want 5 posts on my front page but 10 posts on subsequent pages (page 2, 3, ..).

    In my Settings > Reading > Blog pages show at most > I have 10. But I want to show only 5 posts on the front page, so in index.php I use this :

    if ( $paged <= 1 ) $posts = query_posts($query_string.’&posts_per_page=5&paged=’.$paged);

    Works fine except that.. In page 2, the 6th to 10th posts don’t show. As if, from page 2, WP ? thought ? that the front page has actually displayed the 10 first posts, not just 5.

    What can I do ?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Different number of posts on the front page’ is closed to new replies.