Appendix A. Migrating Your Existing Blog to WordPress

In This Appendix

  • Preparing your current blog for migration

  • Converting your template for use in WordPress

  • Importing from different blog platforms

  • Discovering other import resources

So you have a blog on a different blogging system and want to move your blog to WordPress? This appendix helps you accomplish just that. WordPress makes it relatively easy to pack up your data and archives from one blog platform and move to a new WordPress blog.

WordPress lets you move your blog from platforms such as Blogspot, TypePad, and Movable Type. It also gives you a nifty way to migrate from any blogging platform via RSS feeds, as long as the platform you're importing from has an RSS feed available. Some platforms, such as MySpace, have some limitations on RSS feed availability, so be sure to check with your platform provider. In this appendix, you discover how to prepare your blog for migration and how to move from the specific platforms for which WordPress provides importer plugins.

Note

For each blogging platform, the WordPress.org platform provides you with a quick and easy to install plugin that allows you to import and use your content right away. The importers are packaged in a plugin format because most people use an importer just once, and some people don't use the importer tools at all. The plugins are there for you to use if you need them. WordPress.com, on the other hand, has the importers built right into the software. Note the differences for the version you are using.

Movin' On Up

Bloggers have a variety of reasons to migrate away from one system to WordPress:

  • Simple curiosity: There is a lot of buzz around the use of WordPress and the whole community of WordPress users. People are naturally curious to check out something that all the cool kids are doing.

  • More control of your blog: This reason applies particularly to those who have a blog on Blogspot, TypePad, or any other hosted service. Hosted programs limit what you can do, create, and mess with. When it comes to plugins, add-ons, and theme creation, hosting a WordPress blog on your own Web server wins hands down. In addition, you have complete control of your data, archives, and backup capability when you host your blog on your own server.

  • Ease of use: Many people find the WordPress interface easier to use, more understandable, and a great deal more user-friendly than many of the other blogging platforms available today.

Both the hosted version of WordPress.com and the self-hosted version of WordPress.org allow you to migrate your blog to their platforms; however, WordPress.com accepts a few less than WordPress.org does. Table A-1 lists blogging platforms that have built in importers, or import plugins, for migration to WordPress.

Table A-1. Compatible Blogging Platforms for Migration

Blogging Platform

WordPress.com

WordPress.org

Blogger (Blogspot)

Yes

Yes

Blogli

Yes

No

LiveJournal

Yes

Yes

Movable Type

Yes

Yes

Posterous

Yes

No

RSS import

No

Yes

TypePad

Yes

Yes

Vox

No

Yes

WordPress

Yes

Yes

Note

In the WordPress.org software (self-hosted), the importers are added to the installation as plugins. The importer plugins included in Table A-1 are the plugins that are packaged within the WordPress.org software by default; there are several other platforms you can import content from by installing other plugins available from the official WordPress plugins directory, which you can find here: http://wordpress.org/extend/plugins/search.php?q=importer.

Preparing for the Big Move

Depending on the size of your blog (that is, how many posts and comments you have), the migration process can take anywhere from 5 to 30 minutes. As with any major change or update you make, no matter where your blog is hosted, the very first thing you need to do is create a backup of your blog. You should back up the following:

  • Archives: Posts, comments, and trackbacks

  • Template: Template files and image files

  • Links: Any links, banners, badges, and elements you have in your current blog

  • Images: Any images you use in your blog

Table A-2 gives you a few tips on creating the export data for your blog in a few major blogging platforms. Note: This table assumes that you are logged in to your blog software.

Table A-2. Backing Up Your Blog Data on Major Platforms

Blogging Platform

Backup Information

Movable Type

Click the Import/Export button in the menu of your Movable Type Dashboard; then click the Export Entries From link. When the page stops loading, save it on your computer as a .txt file.

TypePad

Click the name of the blog you want to export; then click the Import/Export link in the Overview menu. Click the Export link at the bottom of the Import/Export page. When the page stops loading, save it on your computer as a .txt file.

Blogspot

Back up your template by copying the text of your template to a text editor such as Notepad. Then save it on your computer as a .txt file.

LiveJournal

Browse to http://livejournal.com/export.bml and enter your information; choose XML as the format. Save this file on your computer.

WordPress

Click the Export link on the Tools menu in the Dashboard; the Export page opens. Choose your options on the Export page and then click the Download Export File button, and save this file on your computer. (Chapter 17 lists ten great WordPress plugins, including one that lets you back up your entire database.)

RSS feed

Point your browser to the URL of the RSS feed you want to import. Wait until it loads fully (you may need to set your feed to display all posts). View the source code of the page, copy and paste that source code into a .txt file, and save the file on your computer.

Tip

This import script allows for a maximum file size of 128MB. If you get an "out of memory" error, try dividing the import file into pieces and uploading them separately. The import script is smart enough to ignore duplicate entries, so if you need to run the script a few times to get it to take everything, you can do so without worrying about duplicating your content.

Converting Templates

Every blogging program has a unique way of delivering content and data to your blog. Template tags vary from program to program; no two are the same, and each template file requires conversion if you want to use your template with your new WordPress blog. In such a case, two options are available to you:

  • Convert the template yourself. To accomplish this task, you need to know WordPress template tags and HTML. If you have a template that you're using on another blogging platform and want to convert it for use with WordPress, you need to swap the original platform tags for WordPress tags. Chapters 12 and 13 give you the rundown on basic WordPress template tags; you may find that information useful if you plan to attempt a template conversion yourself.

  • Hire an experienced WordPress consultant to do the conversion for you. See Chapter 15 for a list of WordPress consultants.

To use your own template, make sure that you have saved all the template files, the images, and the stylesheet from your previous blog setup. You need them to convert the template(s) for use in WordPress.

Note

Hundreds of free templates are available for use with WordPress, so it may be a lot easier to abandon the template you're currently working with and find a free WordPress template that you like. If you've paid to have a custom design done for your blog, contact the designer of your theme, and hire him to perform the template conversion for you. Also, you can hire several WordPress consultants to perform the conversion for you — including yours truly.

Moving Your Blog

You've packed all your stuff, and you have your new place prepared. Moving day has arrived!

This section takes you through the steps for moving your blog from one blog platform to WordPress. This section assumes that you already have the WordPress software installed and configured on your own Web server (see Chapter 6 for information about installing WordPress.org). You can also apply these steps to moving your blog to a WordPress.com hosted blog (Part II is all about WordPress.com).

Find the import function that you need by following these steps:

  1. In the Dashboard, click the Import link on the Tools menu.

    The Import page opens, listing blogging platforms from which you can import content (such as Blogger and Movable Type). Figure A-1 shows the Import page for WordPress.com, and Figure A-2 shows this page for WordPress.org.

  2. Click the link for the blogging platform you're working with.

    Click the Install Now button to install the importer plugin to begin using it.

The following sections provide some import directions for a few of the most popular blogging platforms (other than WordPress, that is). Each platform has its own content export methods, so be sure to check the documentation for the blogging platform that you are using.

The Import feature of the (hosted) WordPress.com Dashboard.

Figure A-1. The Import feature of the (hosted) WordPress.com Dashboard.

The Import feature of the (selfhosted) WordPress.org Dashboard.

Figure A-2. The Import feature of the (selfhosted) WordPress.org Dashboard.

Importing from Blogspot/Blogger

I call it Blogspot; you call it Blogger — a rose by any other name would smell as sweet. The blogging application owned by Google is referenced either way: Blogspot or Blogger. In the end, we're talking about the same application.

To begin the import process, first complete the steps in the "Moving Your Blog" section, earlier in this chapter. Then follow these steps:

  1. Click the Blogger link on the Import page.

    The Import Blogger page loads and you see a message that says, Howdy! This importer allows you to import posts and comments from your Blogger account into your WordPress blog.

    The message goes on to explain that you need a Google account, and that you need to tell Google you're authorizing your WordPress blog to access your Blogger blog.

  2. Click the Authorize button to tell WordPress to access your account.

    A page from Google opens with a message that says your WordPress blog is trying to access your Google account (see Figure A-3).

  3. Enter the e-mail address and password you use for Google; then click the Sign In button.

    The Access Request page in your Google Account opens.

    When you have successfully logged in, you receive a message from Google stating that your blog at WordPress is requesting access to your Blogger account so that it can post entries on your behalf.

  4. Give your permission by clicking the Grant Access button on the Access Request page.

    If you have many posts and comments in your Blogger blog, the import can take 30 minutes or more.

    After the import script has performed its magic, you're redirected to your WordPress Dashboard, where the name of your Blogger blog is listed.

  5. To finish importing the data from Blogger, click the Import button (below the Magic Button header).

    The text on the button changes to Importing . . . while the import takes place. When the import is complete, the text on the button changes to Set Authors (no wonder it's called the Magic Button!).

    Enter your Google login information to authorize WordPress to access your account.

    Figure A-3. Enter your Google login information to authorize WordPress to access your account.

  6. Click the Set Authors button to assign the authors to the posts.

    The Blogger username appears on the left side of the page; a drop-down menu on the right side of the page displays the WordPress login name.

  7. Assign authors using the drop-down menu.

    If you have just one author on each blog, the process is especially easy: Use the drop-down menu on the right to assign the WordPress login to your Blogger username. If you have multiple authors on both blogs, each Blogger username is listed on the left side with a drop-down menu to the right of each username. Select a WordPress login for each Blogger username to make the author assignments.

  8. Click Save Changes.

    You're done!

Importing from LiveJournal

Both WordPress.com and WordPress.org offer an import script for LiveJournal users, and the process of importing from LiveJournal to WordPress is the same for each platform.

To export your blog content from LiveJournal, log in to your LiveJournal blog and then type this URL in your browser's address bar: www.livejournal.com/export.bml.

LiveJournal lets you export the XML files one month at a time, so if you have a blog with several months' worth of posts, be prepared to be at this process for a while. First, you have to export the entries one month at a time, and then you have to import them into WordPress — yep, you guessed it — one month at a time.

Tip

To speed the process a little, you can save all the exported XML LiveJournal files in one text document by copying and pasting each month's XML file into one plain-text file (created in a text editor such as Notepad), thereby creating one long XML file with all the posts from your LiveJournal blog. Then you can then save the file as an XML file to prepare it for import into your WordPress blog.

After you export the XML file from LiveJournal, return to the Import page in your WordPress Dashboard, and follow these steps:

  1. Click the LiveJournal link.

    The Import LiveJournal page opens, from which you can extract the XML file into your WordPress blog.

  2. Click the Browse button.

    A window opens, listing files on your computer.

  3. Double-click the name of the XML file you saved earlier.

  4. Click the Upload and Import button.

    When the import script finishes, it reloads the page with a confirmation message that the process is complete. Then WordPress runs the import script and brings over all your posts from your LiveJournal blog.

Importing from Movable Type and TypePad

Movable Type and TypePad were created by the same company, Six Apart. These two blogging platforms run on essentially the same code base, so the import/export procedure is basically the same for both. Refer to Table A-2, earlier in this chapter, for details on how to run the export process in both Movable Type and TypePad. This import script moves all your blog posts, comments, and trackbacks to your WordPress blog.

Go to the Import page in your WordPress Dashboard by following Steps 1 and 2 in the "Moving Your Blog" section, earlier in this chapter. Then follow these steps:

  1. Click the Movable Type and TypePad link.

    You see instructions for importing the data you exported from your Movable Type or TypePad blog.

  2. Click the Browse button.

    A window opens, listing your files.

  3. Double-click the name of the export file you saved from your Movable Type or TypePad blog.

  4. Click the Upload File and Import button.

    Sit back and let the import script do its magic. When it's done, it reloads the page with a confirmation message that the process is complete.

When the import script is done, you can assign users to the posts, matching the Movable Type or TypePad usernames with WordPress usernames. If you have just one author on each blog, this process is easy; you simply assign your WordPress login to the Movable Type or Typepad username using the drop-down menu. If you have multiple authors on both blogs, match the Movable Type or TypePad usernames with the correct WordPress login names and then click Save Changes. You're done!

Importing from WordPress

With this WordPress import script, you can import one WordPress blog into another, and this is true for both the hosted and self-hosted versions of WordPress. WordPress imports all your posts, comments, custom fields, and categories into your blog. Refer to Table A-2, earlier in this chapter, to find out how to use the export feature to obtain your blog data.

Note

Only files 15MB or smaller can upload via the Import page of the WordPress.com Dashboard. If you have a file that is larger than 15MB in size, you can break it into smaller files and import them as separate files.

When you complete the exporting, follow these steps:

  1. Click the WordPress link on the Import page.

    To get to the Import page, follow Steps 1 and 2 of the "Moving Your Blog" section, earlier in this chapter.

  2. Click the Browse button.

    A window opens, listing the files on your computer.

  3. Double-click the export file you saved earlier from your WordPress blog.

  4. Click the Upload File and Import button.

    The import script gets to work, and when it's done, it reloads the page with a confirmation message that the process is complete.

Importing from an RSS feed

If all else fails, or if WordPress doesn't provide an import script that you need for your current blog platform, you can import your blog data via the RSS feed for the blog you want to import. With the RSS import method, you can import posts only; you can't use this method to import comments, trackbacks, categories, or users. WordPress.com currently does not allow you to import blog data via an RSS feed; this function works only with the self-hosted WordPress.org platform.

Refer to Table A-2, earlier in this chapter, for the steps required to create the file you need to import via RSS. Then follow these steps:

  1. On the Import page in the WordPress Dashboard, click the RSS link.

    You find the instructions to import your RSS file, as shown in Figure A-4.

  2. Click the Browse button on the Import RSS page.

    A window opens, listing the files on your computer.

  3. Double-click the export file you saved earlier from your RSS feed.

  4. Click the Upload File and Import button.

    The import script does its magic and then reloads the page with a confirmation message that the process is complete.

Import your blog into WordPress via RSS.

Figure A-4. Import your blog into WordPress via RSS.

Finding Other Import Resources

The WordPress Codex has a long list of other available scripts, plugins, workarounds, and outright hacks for importing from other blog platforms. You can find that information at http://codex.wordpress.org/Importing_Content.

Note, however, that the WordPress Codex is run by a group of volunteers. When you refer to the Codex, be aware that not everything listed in it is necessarily up to date or accurate, including import information (or any other information about running your WordPress blog).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.170.27