Title: Attachment Slugs for WordPress
Author: Sébastien Dumont
Published: <strong>2016 年 2 月 27 日</strong>
Last modified: 2022 年 12 月 13 日

---

搜尋外掛

![](https://ps.w.org/attachment-slug/assets/banner-772x250.png?rev=1578306)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/attachment-slug/assets/icon-256x256.png?rev=1578306)

# Attachment Slugs for WordPress

 由 [Sébastien Dumont](https://profiles.wordpress.org/sebd86/) 開發

[下載](https://downloads.wordpress.org/plugin/attachment-slug.2.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/attachment-slug/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/attachment-slug/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/attachment-slug/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/attachment-slug/#developers)

 [技術支援](https://wordpress.org/support/plugin/attachment-slug/)

## 外掛說明

**Attachment Slugs for WordPress** enables you to add permalink support for media
attachments making the attachment URLs more friendly and great for SEO results should
you decide to index your attachments.

You can also edit the permalink slug of an individual attachment which you can not
do via “Quick Edit” like other post types. Changing the attachment title does not
update the permalink slug so this is handy to have should you want to rename the
URL for the attachment.

#### How to edit an attachment slug?

Simply go to the media library and edit the item you wish to rename. Then on the
left side under “Attachment Slug” you can rename the slug. Press the “Update” button
and that’s it.

#### Contribute on GitHub

You can [contribute code](https://github.com/seb86/attachment-slugs/blob/master/.github/CONTRIBUTING.md)
to this plugin via the [GitHub](https://github.com/seb86/attachment-slugs/blob/master/.github/CONTRIBUTING.md)
repository.

#### Support

Use the WordPress.org forums for [community support](https://wordpress.org/support/plugin/attachment-slug).
If you spot a bug, you can of course log it on [Github](https://github.com/seb86/attachment-slugs/issues)
instead where I can act upon it more efficiently.

#### Please Leave a Review

Your ratings make a big difference. If you like Attachment Slugs, please consider
spending a minute or two [leaving a review](https://wordpress.org/support/plugin/attachment-slug/reviews/?rate=5#postform)
and tell me what you think about the plugin.

**More information**

 * Other [WordPress plugins](https://profiles.wordpress.org/sebd86/) by [Sébastien Dumont](https://sebastiendumont.com/)
 * Contact Sébastien on Twitter: [@sebd86](http://twitter.com/sebd86)
 * If you’re a developer yourself, follow or contribute to the [Attachment Slugs plugin on GitHub](https://github.com/seb86/attachment-slugs)

## 螢幕擷圖

 * [[
 * Attachment permalink settings

## 安裝方式

Installing “Attachment Slug” can be done either by searching for “Attachment Slug”
via the “Plugins > Add New” screen in your WordPress dashboard, or by using the 
following steps:

 1. Download the plugin via WordPress.org
 2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress
    dashboard.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.

#### Setting up the Plugin

Simply go to “Settings -> Permalinks” page and then at the bottom configure the 
attachment permalinks to your liking and press “Save Changes”. That’s it!

#### Upgrading

Automatic updates should work like a charm; as always though, ensure you backup 
your site just in case.

## 使用者評論

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-36893/)󠁿

 [sahdevsinh](https://profiles.wordpress.org/sahdevsinh/) 2023 年 5 月 23 日

It’s great plugin for add slug for attachment

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

### 󠀁[incredible, been wanting this for a decade!](https://wordpress.org/support/topic/incredible-been-wanting-this-for-a-decade/)󠁿

 [Israel Curtis](https://profiles.wordpress.org/somatic/) 2020 年 3 月 31 日 2 則
留言

I’ve never liked having attachment URLs based on the root / – yes i know as far 
as wordpress is concerned, they’re just like “posts” – but I’m never putting as 
much care into what my image attachments are titled (almost never use the titles).
I’ve always just redirected the attachment page, but when you *do* want to use it,
having a slug prefix (like “media/title-of-attachment”) is sooooo much nicer

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

### 󠀁[its so Good. work well](https://wordpress.org/support/topic/its-so-good-work-well/)󠁿

 [amareza98](https://profiles.wordpress.org/amareza98/) 2018 年 12 月 5 日 4 則留言

thanks you for this plugin. متشکرم از اینکهداین افزونه ذو ساختید. در وقتم صرفه جویی
کرد و بخوبی کار کرد.

 [ 閱讀全部 3 則使用者評論 ](https://wordpress.org/support/plugin/attachment-slug/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Attachment Slugs for WordPress〉的開發相關工作。

參與者

 *   [ Sébastien Dumont ](https://profiles.wordpress.org/sebd86/)

〈Attachment Slugs for WordPress〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/attachment-slug/contributors)
為這個外掛做出的貢獻。

[將〈Attachment Slugs for WordPress〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/attachment-slug)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/attachment-slug/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/attachment-slug/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/attachment-slug/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/attachment-slug/)。

## 變更記錄

#### v2.0.0 – 13th December 2022

### What’s New?

 * Just a little refresh of the plugin to keep it up to date with the latest WordPress.
 * Applies a few improvements and corrections.

⚠️ You will have to redo your attachment permalinks once updated to this version
of the plugin. ⚠️

## 中繼資料

 *  版本 **2.0.0**
 *  最後更新 **3 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 4.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.1.10**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/attachment-slug/) 及 [English (US)](https://wordpress.org/plugins/attachment-slug/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/attachment-slug)
 * 標籤:
 * [attachment](https://tw.wordpress.org/plugins/tags/attachment/)[attachment slug](https://tw.wordpress.org/plugins/tags/attachment-slug/)
   [attachments](https://tw.wordpress.org/plugins/tags/attachments/)[page slug](https://tw.wordpress.org/plugins/tags/page-slug/)
 *  [進階檢視](https://tw.wordpress.org/plugins/attachment-slug/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  3 個 5 星使用者評論     ](https://wordpress.org/support/plugin/attachment-slug/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/attachment-slug/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/attachment-slug/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/attachment-slug/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/attachment-slug/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/attachment-slug/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/attachment-slug/reviews/)

## 參與者

 *   [ Sébastien Dumont ](https://profiles.wordpress.org/sebd86/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/attachment-slug/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.buymeacoffee.com/sebastien)