[WordPress] 外掛分享: Upgrade for Unattach and Re-attach Media Attachments

首頁外掛目錄 › Upgrade for Unattach and Re-attach Media Attachments
WordPress 外掛 Upgrade for Unattach and Re-attach Media Attachments 的封面圖片
300+
安裝啟用
★★★★
4.4/5 分(7 則評價)
1366 天前
最後更新
問題解決
WordPress 4.9+ v1.2.2 上架:2017-08-17

內容簡介

WordPress 可以在媒體庫中組織圖像和其他附件,並將其附加(或指派)到文章和頁面。

當在文章中使用「新增媒體」按鈕上傳檔案時,該檔案會自動附加到特定文章上。媒體庫中也有「附加」連結,可手動將檔案附加到文章上。一旦附加了檔案,就無法在 WordPress 核心中取消附加或重新附加圖像、PDF 或任何附件。

該外掛透過在媒體庫中的「附加」旁提供兩個額外的連結來填補此空白:

重新附加: 允許使用者選擇一篇新文章來附加媒體檔案。
解除附加: 完全刪除附件和文章之間現有的關係。

批量操作

此外掛還提供批量解除附加和重新附加多個檔案的功能!只需勾選要更改的檔案,從「批量操作」下拉選單中選擇所需的操作,然後點擊套用。

注意

我的初始問題來自於此處。感謝 Unattach and Re-attach Media Attachments 帶來的靈感,該外掛只是在後者的程式碼基礎上進行升級,使其更加安全且修復了一些錯誤。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Upgrade for Unattach and 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. Thanks to Unattach and Re-attach Media 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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon