[wp-trac] [WordPress Trac] #21660: 'p' arg should work with custom post types

WordPress Trac noreply at wordpress.org
Thu Nov 1 06:01:43 UTC 2012


#21660: 'p' arg should work with custom post types
--------------------------+-----------------------
 Reporter:  batmoo        |       Owner:
     Type:  enhancement   |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+-----------------------
Changes (by danielbachhuber):

 * status:  closed => reopened
 * type:  defect (bug) => enhancement
 * resolution:  wontfix =>


Comment:

 I think it's a valid enhancement. From my perspective, creating a new
 WP_Query object from an explicit post ID is more like using get_post()
 than get_posts(). The former accepts any post ID, regardless of post type.
 Posts, Pages, and Custom Post Types are all posts in the grand scheme of
 things.

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


More information about the wp-trac mailing list