WP Attachment Export

Description

Note: Obsolete since WordPress 4.4

This feature has been added into the core of WordPress 4.4. 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

Usage

User 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. Thanks PhiLho!

Installation

  1. Unzip wp-attachment-export.zip and upload the folder ‘wp-attachment-export’ to the ‘/wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to ‘Tools > WP Attachment Export’ and click ‘Download Export File’ to start the export process

Usage

User 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. Thanks PhiLho!

FAQ

Installation Instructions
  1. Unzip wp-attachment-export.zip and upload the folder ‘wp-attachment-export’ to the ‘/wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to ‘Tools > WP Attachment Export’ and click ‘Download Export File’ to start the export process

Usage

User 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. Thanks PhiLho!

Reviews

Saved hours of time – fantastic plugin

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.

Good but could use more explanations

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.

Thank you!

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.

Read all 18 reviews

Contributors & Developers

“WP Attachment Export” is open source software. The following people have contributed to this plugin.

Contributors

“WP Attachment Export” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WP Attachment Export” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.3.3

  • Fixed readme formatting issues

0.3.2

  • Added obsolete notice

0.3.1

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