[wp-trac] [WordPress Trac] #14823: Allow get_pages to work with non-hierarchical post types

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 6 15:26:28 UTC 2011


#14823: Allow get_pages to work with non-hierarchical post types
------------------------------------+-----------------------
 Reporter:  aaroncampbell           |       Owner:
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:
Component:  Post Types              |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+-----------------------
Changes (by grandslambert):

 * cc: shane@… (added)
 * status:  closed => reopened
 * resolution:  duplicate =>


Comment:

 Can someone explain to me why wp_dropdown_pages still does not allow non-
 hierarchical post types? With Custom Post Types able to be set to page
 compatibility and non-hierarchical, this should be a non issue. I
 understand why in the past page types were hierarchical and post types
 were not. However, things have changed and there are use cases where non-
 hierarchical post types with the page compatibility are going to be used,
 and we as plugin developers are going to need to get a dropdown of page
 types that are non-hierarchical.

 Or perhaps a new function, wp_dropdown_posts(), should be considered. For
 now I guess I will have to create my own because I just have to have
 something that works.

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


More information about the wp-trac mailing list