Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 4 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)

comment:1 @filosofo5 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.

comment:2 follow-up: @nacin5 years ago

  • Type changed from defect (bug) to feature request

This ticket sounds familiar.

comment:3 @filosofo5 years ago

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

comment:4 @wlindley5 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.

comment:5 @scribu5 years ago

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

comment:6 @mikeschinkel5 years ago

  • Cc mikeschinkel@… added

comment:7 @ciobi5 years ago

  • Cc ciobi added

comment:8 @dwenaus5 years ago

  • Cc deryk@… added

comment:9 @dartanjan4 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.

comment:10 in reply to: ↑ 2 @solarissmoke4 years ago

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

Replying to nacin:

This ticket sounds familiar.


comment:11 @SergeyBiryukov4 years ago

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