[wp-trac] [WordPress Trac] #50989: "Blog pages show at most" setting not working when 2 posts are made sticky

WordPress Trac noreply at wordpress.org
Thu Aug 13 19:35:08 UTC 2020


#50989: "Blog pages show at most" setting not working when 2 posts are made sticky
-------------------------------+------------------------------
 Reporter:  wesleytech         |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  close              |     Focuses:  ui
-------------------------------+------------------------------
Changes (by johnbillion):

 * keywords:  needs-patch => close
 * version:  5.5 =>
 * component:  General => Posts, Post Types


Comment:

 I believe this is intentional behaviour.

 What actually happens is if a sticky post would not otherwise be shown on
 the home page (eg. it's too old) then it gets inserted into the home page,
 which increases the number of posts. If a sticky post would be shown on
 the home page (eg. it's very recent) then it is simply pushed to the top,
 and the number of posts remains the same.

 What you're seeing sounds like a combination of the two, where one post is
 already on the home page and one is older and being inserted as an
 addition.

 It's not possible for the number of posts on the home page to remain
 static if sticky posts are added, because it means the second and all
 subsequent pages would have to be offset by the number of posts that are
 added to the homepage which wouldn't otherwise be there, which is not a
 simple operation. If that didn't happen then posts would be skipped as you
 paginated.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50989#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list