[wp-trac] [WordPress Trac] #10717: Make get_adjacent_post work with custom post_types

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 1 19:57:35 UTC 2009


#10717: Make get_adjacent_post work with custom post_types
-------------------------+--------------------------------------------------
 Reporter:  prettyboymp  |       Owner:            
     Type:  enhancement  |      Status:  new       
 Priority:  normal       |   Milestone:  Unassigned
Component:  General      |     Version:  2.8.4     
 Severity:  normal       |    Keywords:  has-patch 
-------------------------+--------------------------------------------------
 get_adjacent_post forcefully puts post_type = 'post' within the query.
 This function would be reusable with custom post types if it would filter
 based off of the global $post's post_type.

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


More information about the wp-trac mailing list