#15471 closed feature request (duplicate)
Associate Attachments with Multiple Parents
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Media | Keywords: | |
| Focuses: | Cc: |
Description
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.
Thoughts?
Change History (11)
#2
follow-up:
↓ 10
@
15 years ago
- Type changed from defect (bug) to feature request
This ticket sounds familiar.
#4
@
15 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.
#9
@
15 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.
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.