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

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 1 00:50: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 strider72):

 Replying to [comment:191 ptahdunbar]:
 > +1 with mike. Why wouldn't you want to setup the permalink when you
 register a new post type? Adding this into core allows you to query and
 display your custom content instantly without additional setup.

 There are two sides of this argument:

 On the one hand -- keep it easy. On the other hand, don't tie plugin
 authors down to your own assumptions.

 So my thought is, implement a **default** permalink structure, but if a
 plugin author wants it to be something else, that should be do-able (e.g.
 replace the default entirely with something custom, via a hook:
 'custom_[type]_permalink' or somesuch.)

 The danger though:
 Replying to prettyboymp
 >Multiple plugins shouldn't define the url structure for a single post
 type. A plugin should only create its own post_types and manage only the
 url structures for those post_types. I don't know of a reason a plugin
 should mess with post_types it didn't create.

 That's not the problem.  Two plugins could create permalink structures
 that conflict with each other.  They wouldn't have to be for the same post
 type necessarily.

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


More information about the wp-trac mailing list