WordPress.org

Ready to get started?Download WordPress

Forums

2.7 Sticky on Front Page and Posts Per Page (4 posts)

  1. estjohn
    Member
    Posted 5 years ago #

    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)

  2. OperaManiac
    Member
    Posted 5 years ago #

    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 :P

    awkward situation.

  3. estjohn
    Member
    Posted 5 years ago #

    Thanks Sushubh! I guess I did't make that too confusing since you see what I mean :)

  4. mattifesto
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic