Title: WP Attachment Export
Author: Pete
Published: <strong>2012 年 7 月 24 日</strong>
Last modified: 2016 年 5 月 23 日

---

搜索插件

![](https://ps.w.org/wp-attachment-export/assets/banner-772x250.jpg?rev=1165380)

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

![](https://s.w.org/plugins/geopattern-icon/wp-attachment-export_ae6a68.svg)

# WP Attachment Export

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

[下载](https://downloads.wordpress.org/plugin/wp-attachment-export.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-attachment-export/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-attachment-export/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-attachment-export/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-attachment-export/#developers)

 [支持](https://wordpress.org/support/plugin/wp-attachment-export/)

## 描述

**Note: Obsolete since WordPress 4.4**

[This feature has been added into the core of WordPress 4.4](https://core.trac.wordpress.org/ticket/32230).
You can now export your attachments by going to Tools->Export and select ‘Media’
as the export type.

**Original Description**

WP Attachment Export allows you to export your media library into a WordPress eXtended
RSS or WXR file. You can then use the Tools->Import function in another WordPress
installation to import the media library.

#### Issues / Bug reporting

Found a bug? Please use the issue tracker at [https://github.com/thehelvetian/wp-attachment-export/issues](https://github.com/thehelvetian/wp-attachment-export/issues)

### Usage

User [PhiLho](https://wordpress.org/support/profile/philho) has put together a good
summary on how to use the plugin at [https://wordpress.org/support/topic/good-but-could-use-more-explanations](https://wordpress.org/support/topic/good-but-could-use-more-explanations).
Thanks PhiLho!

## 安装

 1. Unzip wp-attachment-export.zip and upload the folder ‘wp-attachment-export’ to 
    the ‘/wp-content/plugins/ directory
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. Navigate to ‘Tools > WP Attachment Export’ and click ‘Download Export File’ to 
    start the export process

#### Usage

User [PhiLho](https://wordpress.org/support/profile/philho) has put together a good
summary on how to use the plugin at [https://wordpress.org/support/topic/good-but-could-use-more-explanations](https://wordpress.org/support/topic/good-but-could-use-more-explanations).
Thanks PhiLho!

## 常见问题

  Installation Instructions

 1. Unzip wp-attachment-export.zip and upload the folder ‘wp-attachment-export’ to 
    the ‘/wp-content/plugins/ directory
 2. 通过WordPress的的“Plugins”菜单激活插件
 3. Navigate to ‘Tools > WP Attachment Export’ and click ‘Download Export File’ to 
    start the export process

#### Usage

User [PhiLho](https://wordpress.org/support/profile/philho) has put together a good
summary on how to use the plugin at [https://wordpress.org/support/topic/good-but-could-use-more-explanations](https://wordpress.org/support/topic/good-but-could-use-more-explanations).
Thanks PhiLho!

## 评价

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

### 󠀁[1 in a million](https://wordpress.org/support/topic/1-in-a-million/)󠁿

 [lukaborna](https://profiles.wordpress.org/lukaborna/) 2017 年 12 月 27 日 1 回复

Super duper stuff.. irreplaceable.

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

### 󠀁[Worked Beautifully, saving me weeks of work!](https://wordpress.org/support/topic/worked-beautifully-saving-me-weeks-of-work/)󠁿

 [JS](https://profiles.wordpress.org/itanjillc/) 2017 年 1 月 12 日 1 回复

I used this to export all media XML from one site into a newer version of the site.
Worked Beautifully, saving me weeks of work!

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

### 󠀁[Saved hours of time – fantastic plugin](https://wordpress.org/support/topic/saved-hours-of-time-fantastic-plugin/)󠁿

 [aaronmagnus](https://profiles.wordpress.org/aaronmagnus/) 2016 年 9 月 3 日 1 
回复

I had to import all of my posts from my old blog to a new one. Was dreading the 
thought of having to import all of the images manually after noticing using Wordpress
Importer only made the attachment point to the old URL. Found this plugin and followed
the instructions in PhiLHo’s comment above and it worked perfectly.

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

### 󠀁[Good but could use more explanations](https://wordpress.org/support/topic/good-but-could-use-more-explanations/)󠁿

 [PhiLho](https://profiles.wordpress.org/philho/) 2016 年 9 月 3 日 5 回复

We asked ourselves lot of questions about how to use it, but it is actually very
simple. But it is better to be explicit about the procedure, though… We installed
the plugin on the WordPress site to export. We exported the articles via WordPress(
Tools > Export > WordPress). Then we exported the media via the plugin (Tools > 
Attachment Export or Export item in the plugin list). We need to rename the exported
XML file as it will have the same name than the previous one. You must keep both.
Then, in the target site, just import (Tools > Import > WordPress) the file with
the articles, then, with the same command, the file with the media. After the first
import, you can see the articles with the images, but they point to the old site(
ie. href is http://your.old.site/wp-content/uploads/some/date/name.jpg for example).
After the second import, they will point to the new site, to the imported files.
Notes: – Images are fetched from the old site, so it must be online. See the forum(
Support) for alternatives (FTP). – PHP / WordPress doesn’t like long operations,
so the import might “fail”, because it takes time to import all these files. But
it has actually done part of the work. Import the media XML file again, it will 
skip over the already imported files (with a message) and continue where it stopped.

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

### 󠀁[Works as described](https://wordpress.org/support/topic/does-not-work-607/)󠁿

 [Terry](https://profiles.wordpress.org/terry85/) 2016 年 9 月 3 日 1 回复

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

### 󠀁[Thank you!](https://wordpress.org/support/topic/thank-you-977/)󠁿

 [thatryan](https://profiles.wordpress.org/thatryan/) 2016 年 9 月 3 日 1 回复

Seriously I borked a script and lost all media in the new site. This worked great
to get all images back into the media library. Thank you.

 [ 阅读所有19条评价 ](https://wordpress.org/support/plugin/wp-attachment-export/reviews/)

## 贡献者及开发者

「WP Attachment Export」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

「WP Attachment Export」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-attachment-export/contributors)
为本插件所做的贡献。

[帮助将「WP Attachment Export」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-attachment-export)

### 对开发感兴趣吗?

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

## 更新日志

#### 0.3.3

 * Fixed readme formatting issues

#### 0.3.2

 * Added obsolete notice

#### 0.3.1

 * Merged pull request from [maavuz](https://profiles.wordpress.org/maavuz). Details
   at [https://github.com/thehelvetian/wp-attachment-export/pull/3](https://github.com/thehelvetian/wp-attachment-export/pull/3)

#### 0.3

 * Shortened menu entry text so it stays on a single line
 * Matched title on page to plugin name
 * Added link to plugin rating page
 * Added link to GitHub repo

#### 0.2.4

 * Security bugfix (Arbitrary File Download)
 * Thanks to [Nitin Venkatesh](http://nitstorm.github.io) for reporting the issue!

#### 0.2.3

 * Made plugin translatable

#### 0.2.2

 * Improvements related to plugin development with Git/Github

#### 0.2.1

 * Added ‘Export’ link beside the activate/deactivate links on the Plugins page
 * Minor code comments
 * Easier installation text
 * Bumped tested version

#### 0.2.0

 * Added LICENSE
 * Bugfixes

#### 0.1.0

 * Initial version

## 额外信息

 *  版本 **0.3.3**
 *  最后更新：**9 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-attachment-export/) 和 [Japanese](https://ja.wordpress.org/plugins/wp-attachment-export/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-attachment-export)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[attachments](https://cn.wordpress.org/plugins/tags/attachments/)
   [export](https://cn.wordpress.org/plugins/tags/export/)[image](https://cn.wordpress.org/plugins/tags/image/)
   [media](https://cn.wordpress.org/plugins/tags/media/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-attachment-export/advanced/)

## 评级

 4.6 星（最高 5 星）。

 *  [  17 条 5 星评价     ](https://wordpress.org/support/plugin/wp-attachment-export/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-attachment-export/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-attachment-export/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/wp-attachment-export/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/wp-attachment-export/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/wp-attachment-export/reviews/)

## 贡献者

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

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-attachment-export/)

## 捐助

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

 [ 捐助此插件 ](http://helvetian.io/)