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

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 31 21:39:28 UTC 2009


#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 filosofo):

 Replying to [comment:94 Denis-de-Bernardy]:
 > Seriously, though. It's like to be frank... whoever tries to store
 anything in that table but data that is very similar to a post is bound to
 get experience huge problems.
 > [[br]]
 > If that doesn't strike whoever, just give it a shot and try to store a
 product, with all of the necessary extra fields. Sounds simple? Great. Now
 create a dozen products, 10k users, and 15k orders spread on those various
 products. Try to make it scale. And good luck. (Tip: you're wasting your
 time.)
 > [[br]]
 > The point I'd like to make is, keep this as post_type, not object_type
 or inanity_type. That table is for posts, or things very similar to posts.
 The name should NOT suggest that it's for generic types of data.

 Your example seems unnecessarily extreme.  I've used custom post types
 already to make, for example, calendar events and restaurant listings
 without great difficulty. Events and restaurants are not posts.

 However, I wonder (since you haven't elaborated) if the issues that make a
 "dozen products, 10k users, and 15k orders" problematic wouldn't also
 afflict a blog with multiple posts, 10k users, and 15k comments (or maybe
 instead 15k comment subscriptions or something).  In other words, wouldn't
 the refactoring necessarily to make wp_posts work for generic objects also
 benefit its use for posts?  (I'm curious about your answer even though
 it's obviously beyond the scope of this ticket).

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


More information about the wp-trac mailing list