WP Attachment Export

Plugin Banner

WP Attachment Export

by Pete

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

  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!

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!

1 in a million

By lukaborna on December 27, 2017

Super duper stuff.. irreplaceable.

Worked Beautifully, saving me weeks of work!

By JS (itanjillc) on January 12, 2017

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!

Saved hours of time - fantastic plugin

By aaronmagnus on September 3, 2016

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

By PhiLho on September 3, 2016

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.

Works as described

By Terry (Terry85) on September 3, 2016


Thank you!

By thatryan on September 3, 2016

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.

Works well

By osdwebdev on September 3, 2016

thanks

Looks good, but not working correctly

By Neo (NeoCsatornaja) on September 3, 2016

I can export xml file, but I can't import the attachment so it's usless for me

works perfectly.

By James Revillini (jrevillini) on September 3, 2016

works as described!

It does what it says

By geeklover on September 3, 2016

Perfect, saved me a lot of trouble

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
Back to top