• I am trying to figure out how to keep 10 posts on the front page and have (for example) 4 of them be sticky.

    What I have found is if I set the posts to display 10 per page (what I want) I enter 10 per page to show.

    BUT if I make 4 sticky on the front page – it ADDS 4 to the front page and also adds 10 to the front page besides the 4 stickies. I dont want 10 on the front page PLUS 4 sticky, I want to make 10 per page with 4 on the front page sticky and then have the other pages have 10 on them.

    In other words if I make any sticky, not to add it to the front page plus the number per page, but make the sticky on the front part of the number per page.

    I hope this makes some sense. The only way I have found around this is make the “sticky” ones non sticky and change the posting date on them (which I do not want to change)

Viewing 3 replies - 1 through 3 (of 3 total)
  • right. i guess you would have to make ur blog 6 posts per page to get the result on the front page.

    but then you would get 6 posts on the rest of the pages ??

    awkward situation.

    Thread Starter estjohn

    (@estjohn)

    Thanks Sushubh! I guess I did’t make that too confusing since you see what I mean ??

    Yeah, this is annoying. I hope they consider it to be a bug.

    edit: I was thinking this could be solved by just changeing the basic query to sort sticky posts first and then use the same logic used before sticky posts. No need to do programming logic for it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2.7 Sticky on Front Page and Posts Per Page’ is closed to new replies.