Title: Upgrade for Unattach and Re-attach Media Attachments
Author: laurencebahiirwa
Published: <strong>2017 年 8 月 18 日</strong>
Last modified: 2022 年 6 月 21 日

---

搜索插件

![](https://ps.w.org/upgrade-for-unattach-re-attach-media-attachments/assets/banner-
772x250.png?rev=2746201)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/upgrade-for-unattach-re-attach-media-attachments/assets/icon-
256x256.png?rev=2746201)

# Upgrade for Unattach and Re-attach Media Attachments

 作者：[laurencebahiirwa](https://profiles.wordpress.org/laurencebahiirwa/)

[下载](https://downloads.wordpress.org/plugin/upgrade-for-unattach-re-attach-media-attachments.1.2.2.zip)

 * [详情](https://cn.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#description)
 * [评价](https://cn.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#developers)

 [支持](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/)

## 描述

WordPress allows to attach (or assign) images and other attachments organized within
the Media Library to posts and pages.

A file will automatically be attached to a particular post when uploaded using the
Add media button in that post. There are also “Attach” links in the Media Library
to manually attach files to posts. Once attached there is no way to unattach or 
re-attach images, pdfs or any attachment in WordPress core.

This plugin fills this gap by providing two additional links next to “Attach” in
the **Media Library**:

 * **Re-Attach**: Allows user to choose a new post to attach the media file.
 * **Unattach**: Totally removes an existing relation between an attachment and 
   a post.

### Bulk Actions

The plugin also provides bulk actions for unattaching and re-attaching multiple 
files at once! Just mark the files you want to change, select your desired action
from the _Bulk Actions_ dropdown and hit _Apply_.

### Note

[My initial issue came from here](https://stackoverflow.com/questions/45690582/image-post-attachments-not-specific-to-post/45705413#45705413).
Thanks to [Unattach and Re-attach Media Attachments](https://wordpress.org/plugins/unattach-and-re-attach-attachments//)
which inspired this plugin. Just adding upgrades of the code to the latter so it
is safer for use and have fixed some bugs.

## 屏幕截图

[⌊Bulk actions "Unattach" and "Re-Attach" in the Media Library⌉⌊Bulk actions "Unattach"
and "Re-Attach" in the Media Library⌉[

Bulk actions “Unattach” and “Re-Attach” in the Media Library

[⌊The extended "Parent" column in the Media Library⌉⌊The extended "Parent" column
in the Media Library⌉[

The extended “Parent” column in the Media Library

[⌊Individual actions "Unattach" and "Re-Attach" per post⌉⌊Individual actions "Unattach"
and "Re-Attach" per post⌉[

Individual actions “Unattach” and “Re-Attach” per post

## 安装

 1. Upload the plugin to the `/wp-content/plugins/` directory or from the repository.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Refer to plugin description in regards to setting up how the plugins works
 4. **It will work out of the box**. Move to your media library and you can unattach
    and re-attach attachments to various posts.

## 常见问题

### How can I contribute?

You can raise lots of [issues](https://github.com/bahiirwa/upgrade-for-unattach-re-attach-media-attachments/)
here and also make some [Pull Requests through github](https://github.com/bahiirwa/upgrade-for-unattach-re-attach-media-attachments/)

## 评价

![](https://secure.gravatar.com/avatar/70d41198497ebad3fd4a5222f1060dbc376512151f3650bdedd7f4c10ada307d?
s=60&d=retro&r=g)

### 󠀁[The only one to do a media attachment bulk action](https://wordpress.org/support/topic/the-only-one-to-do-a-media-attachment-bulk-action/)󠁿

 [becaneweb](https://profiles.wordpress.org/becaneweb/) 2023 年 1 月 18 日

After a long search I finally found THE plugin to attach media quickly in wp. Thank
you !

![](https://secure.gravatar.com/avatar/69b74a8b449201f3e9e4c562803d8ede0bb97bd5ad04af631f12d6a7cac673ea?
s=60&d=retro&r=g)

### 󠀁[It works perfectly](https://wordpress.org/support/topic/it-works-perfectly-110/)󠁿

 [danielepais](https://profiles.wordpress.org/danielepais/) 2020 年 7 月 24 日 1
回复

And it is very useful for bulk attach/unattach. Well done!

![](https://secure.gravatar.com/avatar/19c1a1fa01710afcce4cf56433a4c8b12a3c183287e1ffdd1e06bef008a8be04?
s=60&d=retro&r=g)

### 󠀁[Bulk un-attachment doesn’t work at all](https://wordpress.org/support/topic/bulk-un-attachment-doesnt-work-at-all/)󠁿

 [Nikola Dimitrijević](https://profiles.wordpress.org/bukizvanipera/) 2020 年 8 
月 28 日 3 回复

On WP 5.3.2, bulk un-attachment doesn't work at all and there is no way to order
media list by parent (page/post media file is attached to)

![](https://secure.gravatar.com/avatar/7b21377684daa99141591e9cea2d6b7bf8568138a60ee955801095c59845b146?
s=60&d=retro&r=g)

### 󠀁[Lightweight and so useful](https://wordpress.org/support/topic/lightweight-and-so-useful/)󠁿

 [DragoWeb](https://profiles.wordpress.org/dragoeco/) 2020 年 2 月 8 日 1 回复

I would have saved a lot of time if I had discovered this plugin earlier. It's lightweight
and veeeery useful for me so, thanks a lot to the dev who created this 🙂

![](https://secure.gravatar.com/avatar/25e1a73961052a1fc288f15e37f698976e7799196390c0ac1ff54f4314aa1955?
s=60&d=retro&r=g)

### 󠀁[Works fine](https://wordpress.org/support/topic/works-fine-1034/)󠁿

 [betagoo](https://profiles.wordpress.org/betagoo/) 2019 年 6 月 27 日

Works fine.

![](https://secure.gravatar.com/avatar/337af39f65239e5c9daeaa5e6f1818ad54b8c12dae0fa7059609576037e6a8fa?
s=60&d=retro&r=g)

### 󠀁[Works great](https://wordpress.org/support/topic/works-great-4453/)󠁿

 [bombarulz2](https://profiles.wordpress.org/bombarulz2/) 2017 年 11 月 17 日

Works great, saved me a lot of time

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/)

## 贡献者及开发者

「Upgrade for Unattach and Re-attach Media Attachments」是开源软件。 以下人员对此
插件做出了贡献。

贡献者

 *   [ laurencebahiirwa ](https://profiles.wordpress.org/laurencebahiirwa/)

[帮助将「Upgrade for Unattach and Re-attach Media Attachments」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/upgrade-for-unattach-re-attach-media-attachments)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/upgrade-for-unattach-re-attach-media-attachments/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/upgrade-for-unattach-re-attach-media-attachments/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/upgrade-for-unattach-re-attach-media-attachments/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/upgrade-for-unattach-re-attach-media-attachments/)。

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**4 年前**
 *  活跃安装数量 **300+**
 *  WordPress 版本 ** 4.9 或更高版本 **
 *  已测试的最高版本为 **6.0.17**
 *  语言
 * [English (US)](https://wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/)
 * 标签
 * [attachments](https://cn.wordpress.org/plugins/tags/attachments/)[media library](https://cn.wordpress.org/plugins/tags/media-library/)
   [re-attach](https://cn.wordpress.org/plugins/tags/re-attach/)[unattach](https://cn.wordpress.org/plugins/tags/unattach/)
   [upgrade](https://cn.wordpress.org/plugins/tags/upgrade/)
 *  [高级视图](https://cn.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/)

## 贡献者

 *   [ laurencebahiirwa ](https://profiles.wordpress.org/laurencebahiirwa/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/omukiguy)