Import WordPress to Squarespace with Images — [Image URL] is an attachment without a parent. Deleting from the import.

If you are reading this post my guess is you trying to import your WordPress site into Squarespace (great move) but the images aren’t coming along for the ride (not so great).

You might even be seeing this error after import:

[Image URL] is an attachment without a parent. Deleting from the import.

Here’s the reason:

This error is due to the images in Wordpress being stored in the Wordpress Media Gallery. Wordpress stores the images as attachments, since you attach them to Wordpress posts. Squarespace does not have a method to store the attachments, since they are not Pages or Blog Posts. Thus they do not get imported.

You’ve probably already read about this here on the Squearespace help site.

How do we fix it?

You need your WordPres .XML file.

Do NOT use the awesome import feature built into Squarespace. While it is awesome it doesn’t work correctly. Maybe not so awesome but there support is!

Go to your WordPress Dashboard > Tools > Export > Select All Content > Download Export File.

Save the XML file for later.

There’s a little bit of uploading and downloading now.

Step 1 — Download Your Media Files

FTP to your site and download the folder /wp-content/uploads/

Step 2 — Create Amazon S3 Folder

Setup an account with Amazon S3. This is a affordable way to store files for VERY cheap.

Step 3 — Upload

Create new Bucket (Not so fancy name for folder) in S3 where we are going to upload our files, preserving the same file structure.

Mine looked like this after everything was uploaded:

The url path for my new images will be:

https://s3.amazonaws.com/dfsquare/uploads/

We now have our images stored and backed up on Amazon S3.

Step 4 — Edit The XML File

Open your WordPress XML file in your favourite text edited. I use Sublime on the Mac.

Now replace all instances of:

/wp-content/uploads/

with you new Amazon S3 folder url.

Mine looked like this:

http://www.davidfrosdick.com/wp-content/uploads/

replaced with

https://s3.amazonaws.com/dfsquare/uploads/

Step 5 — Import

Now go back to Squarespace > Settings > Advanced > Import/Export > Click Import > Chose WordPress > Select Advanced.

Click the ‘Add a file’ and upload your newly edited XML file.

Fingers crossed that should all work for you now.

If you enjoyed this article, please share or press ♥ below so more people can benefit from it.

David Frosdick is a content marketer and product creator. He helps people turn their knowledge into a business or online course. Please feel free to comment here or contact me over at my blog www.davidfrosdick.com for more Squarespace and marketing tips.

Crafts content at OptimizePress. Digital Gypsy. Helping experts package their skills into online courses & info products. www.davidfrosdick.com

Crafts content at OptimizePress. Digital Gypsy. Helping experts package their skills into online courses & info products. www.davidfrosdick.com