Home page number of posts versus paginated number of posts (6 posts)

  1. Dave Bergschneider
    Posted 6 years ago #

    I have been spending hours trying to find a solution to my current dilemma and was wondering if some folks here might have a solution.

    My site (truimage.net) I have it setup to have featured post on the home page and if I set the posts per page to an odd number like seven, it will correctly show 6. However using the pagenavi plugin for pagination, when I get to the next page by clicking next, It will show 7 posts instead of of 6. Any ideas why this would occur and how I might go about correcting it?

  2. moshu
    Posted 6 years ago #

    Why would it be 6?
    You set it to 7. On the main page you have 1+6=7.
    Where are you expecting the 6 from?

  3. Dave Bergschneider
    Posted 6 years ago #

    I made a mistake in my description.

    You are correct home page is 1+6=7 which is what I want however when clicking the navigation for next page it comes out to 1+7=8. My mistake but still the same issue.

  4. Dave Bergschneider
    Posted 6 years ago #

    No ideas? Anyone?

  5. Dave Bergschneider
    Posted 6 years ago #

    Nevermind, I'll just get rid of the concept.

  6. majo-san
    Posted 6 years ago #

    I've also spent hours trying to solve a similar problem. I wanted to show 6 posts on the front page plus featured post and 10 posts on the other pages with no feature (and also using pagenavi plugin). I set up the blog to show 10 posts on the Options panel and added this code to my index.php before the loop:

    if (get_query_var('paged') < 2){
        include (TEMPLATEPATH . '/featured.php');

    You can adapt the code to your needs. This works for me but I'm not a programmer, so if anyone has a better suggestion please let us know of it. :)

    Edit: Oh wait, I just noticed the pagination on the first page is screwed up because it thinks there is 6 posts in every page so it shows more pages than they exist. =_= If I find a solution I'll post it here.

Topic Closed

This topic has been closed to new replies.

About this Topic