[wp-trac] [WordPress Trac] #55444: Sticky posts are limited to 5

WordPress Trac noreply at wordpress.org
Tue Mar 22 23:48:57 UTC 2022


#55444: Sticky posts are limited to 5
-------------------------------+-----------------------------
 Reporter:  spacedmonkey       |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:
 Severity:  normal             |   Keywords:
  Focuses:                     |
-------------------------------+-----------------------------
 The call to get sticky posts in WP_Query uses `get_posts`. As no limit is
 sent, the default limit to 5 posts. This means, that is the site has 15
 sticky posts, only 5 sticky posts will ever be shown on the front end.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55444>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list