[wp-trac] [WordPress Trac] #21986: Roll sticky posts into MySQL query

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 25 10:44:09 UTC 2012


#21986: Roll sticky posts into MySQL query
----------------------------+------------------------------
 Reporter:  martinshopland  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Query           |     Version:  3.4.2
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |
----------------------------+------------------------------

Comment (by martinshopland):

 Oh, I see what you're saying. On page 1 of home you get posts_per_page
 posts plus the number of sticky posts. I would guess this is so that the
 sticky posts are dealt with on the first page, that the whole thing
 doesn't need to be run again for subsequent pages and that the proper page
 boundaries are preserved, but I suppose it could've been designed this
 way. I don't mean to be disparaging towards WP or anything that you guys
 have done, I use it every day and I like it. Most of my installations are
 not blogs, I mostly use WP as a CMS system, I'm always bending it to new
 purposes, it was on one of those blog style installations, however, where
 this sticky posts issue began to niggle, the subsequent pages are loaded
 in using AJAX and it's looks really weird having posts appearing again and
 not being to control which of your sticky posts actually appears at the
 top.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21986#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list