[wp-trac] [WordPress Trac] #26937: get_adjacent_post() should use WP_Query rather than build its own SQL query

WordPress Trac noreply at wordpress.org
Thu Mar 13 22:12:16 UTC 2014


#26937: get_adjacent_post() should use WP_Query rather than build its own SQL query
-------------------------+-----------------------
 Reporter:  ethitter     |       Owner:  nacin
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.9
Component:  Query        |     Version:  3.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------

Comment (by BinaryMoon):

 Replying to [comment:23 jcastaneda]:
 > It appears that when using next/previous_post_link it actually directs
 to a sticky post if there is one.

 I'm seeing this behaviour on my dev install as well. get_previous_post and
 get_next_post direct me to sticky posts.

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


More information about the wp-trac mailing list