(Possibly OPTIONAL) Part 4 of Setting Up A Test Site for Your Blog: Exporting/Importing Your Blog Content
FYI…here’s where things get a bit tricky. If you have a blog with any decent amount of content…it’s going to be BIG. I’ll tell you what I did, but I’m not convinced this is the correct or easy way to do it. If you find an easier way, please tell me in the comments!
***It dawned on me AFTER I did this whole thing that you probably don’t HAVE to do this step. You might want all your pages on your test site, but you really have no need to have all your posts on there.
It does also bring over your navigational menus and some other important items (specifically: “This will contain all of your posts, pages, comments, custom fields, terms, navigation menus and custom posts”), so you’ll have to decide for yourself.
Honestly on my second go round, I tried to skip this step and it didn’t work out. So I went back and did it and was once again successful. So I’m going to go ahead and say DO IT…but it you are smarter than me and you can figure out how to NOT do it…well that’s okay too 😉 .
Step 1: Go into your MAIN BLOG. The blog you are making a testing site for.
Step 2: Scroll down to Tools in your dashboard and choose Export.
Step 4: You’ll have an XML file downloaded to your computer.
Step 5: Here’s where things get tricky. My file was huge. WordPress’s importer will only import files 8MB or smaller so I had to find a way to make my XML file smaller so I could upload the files to my testing site. I downloaded this free program here that I found by searching the WordPress.org forums. It worked well and split my huge XML file into…wait for it…17 files.
SO yes, I had to import each file in separately.
If you want to do it my way, head on over here and download WXRSplitter. Once the program is downloaded, use it to split your XML file. Hopefully you have less files than I do! You can attempt to make them into 8MB chunks, but I had read in my googling that people were having issues importing anything over 2MB, so I made mine all 2MB.
Move the resulting files into an easy to find folder on your computer and head on over to your TEST BLOG now.
Step 6: Go down to Tools and Click Import. Now you are going to import each file one at a time. Be sure you don’t try to import your large file…it simply won’t work.
The first screen you’ll see will ask if you want to assign new authors to the posts made by unregistered users. I ignored all of this. You are being asked this because the authors of the posts you are importing are not users on your test blog. There’s no need for them to be, so just ignore it.
I also did not check Download and Import File Attachments.
I just clicked Submit. For every file, that’s all I did on this page. Clicked submit.
Give it a bit and you’ll come to a screen that probably looks a bit alarming. Filled with a bunch of warnings that items failed to upload.
Don’t let it alarm you. Remember you are uploading bits and pieces of your site…it will eventually all end up up over there.
Step 7: When you finish…take a look at your site (it’s also fun to watch it as you upload the smaller files. It’s cool to see it slowly taking shape!)! You aren’t done yet though.