[wp-trac] [WordPress Trac] #14513: Time for a wp_post_relationships table?

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 5 20:08:04 UTC 2010


#14513: Time for a wp_post_relationships table?
-----------------------------+----------------------------------------------
 Reporter:  mikeschinkel     |        Owner:                
     Type:  feature request  |       Status:  reopened      
 Priority:  normal           |    Milestone:  Future Release
Component:  Post Types       |      Version:  3.0.1         
 Severity:  normal           |   Resolution:                
 Keywords:                   |  
-----------------------------+----------------------------------------------

Comment(by westi):

 Even with all the examples above I still don't see why the current
 taxonomy system can't be used (along with custom post types) to provide
 what you need.

 If you want to store extra data about a particular term within a taxonomy
 the use a custom post type to store that information and have it linked to
 the term.

 If you implement the ui correctly the user can't break these links i.e.
 you only give them one way to edit things.

 Taking one of these examples:

 {{{A conference website can have sessions, sponsors, presenters, time
 slots and rooms. A session can have one or more presenters and be
 presented in one or more time slots and one room per time slot ,and a
 presenter can represent a sponsor or not.}}}

 Post types: Sessions, Sponsors, Presenters, ( maybe Rooms)
 Taxonomies: Presenters (on Sessions), Sponsors (on Presenters).

 You hide the creation ability of the two taxonomies from the users and
 just let them put the existing ones on to relevant posts using a selection
 ui on the post edit page.

 They add new entries to the Taxonomies by creating custom posts of the
 matched types.

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


More information about the wp-trac mailing list