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

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 31 15:36:50 UTC 2012


#21660: 'p' arg should work with custom post types
--------------------------+------------------------------
 Reporter:  batmoo        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Query         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by joshkadis):

 As for the original question, neither `p` nor `page_id` will work for a
 custom post type, correct?

 I'd argue that if you're looking for one specific post object and know its
 ID, you should be able to find it without having to specify any other
 parameters like `post_type` or `page_id` (which is essentially the same as
 having to specify `p=[ID]&post_type=page`)

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


More information about the wp-trac mailing list