Import attachments from another WordPress blog using a WXR file.
Thank u brother, I've trying to import all the images. but can't. After use your plugin. I can import all the images. i am very happy. May Allah bless u
I have two websites. I wanted to export the posts, and ONLY the posts, from one to another. This worked using the default WordPress tools, but attachments didn't get migrated. (This is a fault of wordpress!)
Anyway, this plugin seems to be the bandaid to fix the problem. Issue is, if you set it to export posts only, you get an error:
There were no attachment files found in the import file.
The alternative is to export everything, but that's just silly. I don't WANT to migrate anything else and it would in fact cause problems.
So I found another plugin, "WP Attachment Export", of which this plugin is based on. And hurray, it actually let me import attachments!
It didn't attach them to the original posts. And there is no way to tell what images were imported versus what images were already there. The post date wasn't changed, so I can't just sort by date.
It doesn't attach media to the posts. I assume it is meant to, but it probably references the ID of the post. BUT THE ID CHANGES WHEN YOU IMPORT POSTS!
(Why doesn't the WordPress team just fix the issue? We shouldn't need this plugin anyway.)
This, unlike the official WordPress Importer, actually works. If your images are hooped, this is what you need.
As a side note, I had to make use of the Search and Replace Addon to update some links etc. but this got my farther than anything else.
I have used this on several different sites and never encountered any problems. Thanks for the good work.
(import_file_error: Remote file is incorrect size)
I struggled with a troublesome migration, and then found this gem. it would have saved me hours of banging my head against a wall. A much needed companion to the wordpress importer plugin.
i seldom give comment, nice work!
This plugin works, but you may need to be aware of a couple of things that can cause it not to work - and then address those things before using this plugin.
The first thing to be aware of is that there is a bug (apparent) in the standard WordPress Export feature that you will use on the source site to export your content.
When using the WordPress Export, the only way to get the media attachments information included in the Export xml file is to select to export "All". This will export all content in your source site, which may not be what you want, but is what you will have to do if you want to use this plugin to import attachments. If you don't use the "All" setting during your export, you will get no attachment information included in the export file and then this plugin will tell you that you have no attachments.
Assuming you have an export file that has attachment information in it, then this plugin will work, as long as the source WordPress site is on a server that has an IP address that matches the IP address for the site in the public DNS. This may not be the case if your source server is self-hosted on your own LAN. The plugin will use your internal DNS server and find the source site at an internal private IP address.
This will be a problem because of a WordPress "feature". WordPress has added to the core at some point a check for whether or not a host is "safe" when using wp_http_get (which is what this plugin uses to fetch the attachment from the source site).
So, on an internal LAN, the wp_http_get will fail everytime until you add a filter to your functions.php file. See this blog post for the filter to add: http://steadman.io/blog/2013/10/31/media-imports-fail-self-hosted-wordpress-sites-same-network/
After encountering and overcoming these two issues, I was able to successfully import 755 image attachments using this tool.
I am giving it 4 stars instead of 5 because it should mention somewhere in the documentation about the bug in the WordPress Export function and that you have to use the export "All" option in order to have a usable XML file for this plugin to properly do its thing.
Using this plugin to migrate attachments worked like a charm. The only problem I saw, were some missing images due to the fact that upload was made by a user who is no longer assigned to the specific blog in a multisite.
I don't know what to say other than it didn't work... didn't upload any of my attachments. Failed over and over again.
You must log in to submit a review. You can also log in or register using the form near the top of this page.