Title: Upgrade for Unattach and Re-attach Media Attachments
Author: laurencebahiirwa
Published: <strong>18.8.2017</strong>
Last modified: 21.6.2022

---

Hae lisäosia

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of 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/)

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

 * [Tiedot](https://fi.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#description)
 * [Arvostelut](https://fi.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#reviews)
 *  [Asennus](https://fi.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#installation)
 * [Kehitys](https://fi.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/#developers)

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

## Kuvaus

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.

## Kuvankaappaukset

[⌊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

## Asennus

 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.

## UKK

### 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/)

## Arvostelut

![](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/) 18.1.2023

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/) 24.7.2020 1 reply

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/) 28.8.2020 
3 replies

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/) 8.2.2020 1 reply

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/) 27.6.2019

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/) 17.11.2017

Works great, saved me a lot of time

 [ Lue kaikki 7 arvostelua. ](https://wordpress.org/support/plugin/upgrade-for-unattach-re-attach-media-attachments/reviews/)

## Avustajat & Kehittäjät

“Upgrade for Unattach and Re-attach Media Attachments” perustuu avoimeen lähdekoodiin.
Seuraavat henkilöt ovat osallistuneet tämän lisäosan kehittämiseen.

Avustajat

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

[Käännä “Upgrade for Unattach and Re-attach Media Attachments” omalle kielellesi.](https://translate.wordpress.org/projects/wp-plugins/upgrade-for-unattach-re-attach-media-attachments)

### Oletko kiinnostunut kehitystyöstä?

[Browse the code](https://plugins.trac.wordpress.org/browser/upgrade-for-unattach-re-attach-media-attachments/),
check out the [SVN repository](https://plugins.svn.wordpress.org/upgrade-for-unattach-re-attach-media-attachments/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/upgrade-for-unattach-re-attach-media-attachments/)
by [RSS](https://plugins.trac.wordpress.org/log/upgrade-for-unattach-re-attach-media-attachments/?limit=100&mode=stop_on_copy&format=rss).

## Metatiedot

 *  Version **1.2.2**
 *  Last updated **4 vuotta sitten**
 *  Active installations **300+**
 *  WordPress version ** 4.9 or higher **
 *  Tested up to **6.0.17**
 *  Language
 * [English (US)](https://wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/)
 * Tags
 * [attachments](https://fi.wordpress.org/plugins/tags/attachments/)[media library](https://fi.wordpress.org/plugins/tags/media-library/)
   [re-attach](https://fi.wordpress.org/plugins/tags/re-attach/)[unattach](https://fi.wordpress.org/plugins/tags/unattach/)
   [upgrade](https://fi.wordpress.org/plugins/tags/upgrade/)
 *  [Edistynyt näkymä](https://fi.wordpress.org/plugins/upgrade-for-unattach-re-attach-media-attachments/advanced/)

## Arvosanat

 4.4 out of 5 stars.

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

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

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

## Avustajat

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

## Tuki

Onko sinulla jotain sanottavaa? Tarvitsetko apua?

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

## Lahjoita

Haluatko tukea tämän lisäosan kehitystä?

 [ Tue tämän lisäosan tekijöitä ](https://www.paypal.me/omukiguy)