[wp-trac] [WordPress Trac] #9674: Better support for custom post types

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 1 19:17:49 UTC 2010


#9674: Better support for custom post types
------------------------------------+---------------------------------------
 Reporter:  wnorris                 |        Owner:  ryan    
     Type:  task (blessed)          |       Status:  reopened
 Priority:  normal                  |    Milestone:  3.0     
Component:  Administration          |      Version:  2.9     
 Severity:  normal                  |   Resolution:          
 Keywords:  has-patch tested early  |  
------------------------------------+---------------------------------------

Comment(by prettyboymp):

 Example uses of attachment:ticket:9674:attachment.9674.17.diff


 {{{
 register_post_type('foo', array('publicly_queryable' => true));
 register_post_type('bar', array('publicly_queryable' => false));
 }}}

 Going to http://example.com/?post_type=foo should show the latest 'foo'
 type posts'
 Going to http://example.com/?post_type=bar should show the normal homepage
 as 'bar' isn't a publicly queryable post_type.

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


More information about the wp-trac mailing list