[wp-trac] [WordPress Trac] #19652: There should be a get_next_post_link() and get_previous_post_link()

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 23 03:08:34 UTC 2011


#19652: There should be a get_next_post_link() and get_previous_post_link()
-------------------------+-----------------------------
 Reporter:  Master Jake  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
-------------------------+-----------------------------
 You can do this with the plural form: get_next_'''posts'''_link() and
 get_previous_'''posts'''_link() so there might as well be a getter for
 singular posts. I often find I need to easily check for a previous or next
 post anyway before outputting something, and this would be the simplest
 way of doing that.

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


More information about the wp-trac mailing list