Make WordPress Core

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#15471 closed feature request (duplicate)

Associate Attachments with Multiple Parents

Reported by: filosofo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:


There's no logical reason attachments couldn't be associated with multiple posts, and it would make a number of things easier and avoid needless duplication.

I suggest we do this by setting the attachment parent(s) in postmeta, with (possibly) multiple keys named _parent, like so:

| meta_id | post_id | meta_key          | meta_value |
|       1 |     123 | _parent           | 456        | 
|       2 |     123 | _parent           | 789        | 

Here, 123 is the attachment object's ID, and 456 and 789 are the IDs of its associated post objects.


Change History (11)

#1 @filosofo
10 years ago

If you tell me this is slated for the media rework in the next version of WP, the power button will fall off your laptop.

#2 follow-up: @nacin
10 years ago

  • Type changed from defect (bug) to feature request

This ticket sounds familiar.

#3 @filosofo
10 years ago

I searched but couldn't find anything exactly the same.

#4 @wlindley
10 years ago

There is a plugin -- http://wordpress.org/extend/plugins/attachments/ -- that does something like this already. I support adding similar functionality to core.

#5 @scribu
10 years ago

This would be handled nicely by a posts2posts table. See #14513

#6 @mikeschinkel
10 years ago

  • Cc mikeschinkel@… added

#7 @ciobi
10 years ago

  • Cc ciobi added

#8 @dwenaus
10 years ago

  • Cc deryk@… added

#9 @dartanjan
9 years ago

  • Cc dartanjan added

I also support adding this feature to WP core.

Traditional bloggers often don't see use case for this, but for anyone who's tried making a rich media site or a newspaper/magazine site, its more obvious.

#10 in reply to: ↑ 2 @solarissmoke
9 years ago

  • Keywords needs-patch removed
  • Resolution set to duplicate
  • Status changed from new to closed

Replying to nacin:

This ticket sounds familiar.


#11 @SergeyBiryukov
9 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.