[wp-trac] [WordPress Trac] #14513: Time for a wp_post_relationships table?
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 1 20:09:19 UTC 2010
#14513: Time for a wp_post_relationships table?
-----------------------------+----------------------------------------------
Reporter: mikeschinkel | Owner:
Type: feature request | Status: closed
Priority: normal | Milestone:
Component: Post Types | Version: 3.0.1
Severity: normal | Resolution: wontfix
Keywords: |
-----------------------------+----------------------------------------------
Comment(by mikeschinkel):
Replying to [comment:43 scribu]:
> That's funny, because I'm also moving my Posts 2 Posts plugin away from
taxonomies. Not because of instability, but because there was no clean way
to add additional information per connection. So, the next version will
have not one, but two custom tables: wp_p2p and wp_p2pmeta.
>
> Due to the second table, you can connect the same two posts more than
one time, but with different metadata.
>
> Here's the discussion that led to this change:
>
> http://wordpress.org/support/topic/plugin-posts-2-posts-how-to-add-info-
to-connection
Glad the use-cases becoming evident.
However, why do you really need '''''two''''' new tables? Wouldn't one
work? The one table could link two posts with a third ID that links to a
taxonomy_term or another post for context.
Of course you might need the second table for what effectively would be
taxonomy meta but it seems that taxmeta was getting thumbs up for 3.1 so
that could be moot?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14513#comment:44>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list