[wp-trac] [WordPress Trac] #7457: Sticky Posts

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 2 18:45:53 GMT 2008


#7457: Sticky Posts
---------------------+------------------------------------------------------
 Reporter:  ryan     |       Owner:  anonymous           
     Type:  defect   |      Status:  new                 
 Priority:  normal   |   Milestone:  2.7                 
Component:  General  |     Version:                      
 Severity:  normal   |    Keywords:  sticky posts blessed
---------------------+------------------------------------------------------
 By popular demand, Sticky Posts.

 Suggested design:

  * Have "Stick to front page" checkbox on the edit post page
  * If checked, add the ID of the post to a sticky_posts field in the
 options table
  * When performing a front page query, move sticky posts to the head of
 the results.  If all sticky posts are not present in the results, do a
 separate query to fetch the missing ones.  Do this only if is_home().
  * Provide is_sticky($post_id) for use by themes.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7457>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list