高级管理文档

💡 云策文档标注

概述

本文档介绍了如何使用 WordPress 导入工具从其他 WordPress 站点或发布系统导入内容。涵盖了导入前的注意事项、常见问题解决方案,以及针对多种发布系统的具体导入方法和资源。

关键要点

  • WordPress 内置导入工具位于管理后台的“工具 -> 导入”菜单,支持从多种系统导入内容。
  • 导入前需注意文件大小可能导致内存错误,可通过编辑 php.ini、联系主机商或分割文件解决。
  • 导入失败可能产生重复数据,建议导入后检查并清理记录。
  • 针对不同发布系统(如 b2evolution、Blogger、Drupal、Joomla、Movable Type、RSS、WordPress 等),提供了特定导入工具、插件或脚本的详细步骤和资源链接。
  • 对于 XML 或 CSV 文件,推荐使用 WP All Import 插件进行导入。
  • 导入过程中可能涉及作者映射、附件下载等选项,需根据具体系统配置。

代码示例

headline=title
content=entry+more
date=timestamp in Unix format
categories="cat," with each value separated by a semicolon.

注意事项

  • 某些导入工具(如 BIMP Importer 脚本)可能需要付费使用。
  • 导入外部系统时,需确保兼容性(如 Drupal 版本、Joomla 版本等)。
  • 对于大型数据库迁移,建议参考相关文章(如“Notes on a Massive WordPress Migration”)以避免问题。

📄 原文内容

Using the WordPress Import tool, you can import content into your site from another WordPress site, or from another publishing system.

You can find many of the importers described here under Tools -> Import in the left nav of the WordPress Administration Screen.

You can import content from publishing systems beyond those listed on the Administration Screen. Procedures differ for each system, so use the procedures and plugins listed below as necessary. If you’re new to WordPress, review the WordPress Features and Working with WordPress pages to get started.

If you run into problems, search the WordPress Support Forum for a solution, or try the FAQ.

Before Importing

If the file you’re importing is too large, your server may run out of memory when you import it. If this happens, you’ll see an error like “Fatal error: Allowed memory size of 8388608 bytes exhausted.”

If you have sufficient permissions on the server, you can edit the php.ini file to increase the available memory. Alternatively, you could ask your hosting provider to do this. Otherwise, you can edit your import file and save it as several smaller files, then import each one.

If your import process fails, it still may create some content. When you resolve the error and try again, you may create duplicate data. Review your site after a failed import and remove records as necessary to avoid this.

b2evolution

There are two methods of importing b2evolution content into WordPress.

  • Movable Type Export Format: You can re-skin a b2evolution blog so that when its source is viewed it appears to be in the Movable Type export format. You can save the export and import it as Movable Type data. See Movable Type and TypePad.
  • BIMP Importer script: You can use the BIMP Importer script to import b2evolution blogs, categories, posts, comments, files and users into your WordPress installation (v3 and higher). Note that this requires payment.

Blogger

You can import posts, comments, categories and authors from Blogger. WordPress includes an import tool designed specifically for importing content from Blogger.

  1. Export your Blogger contents as XML.
  2. In your WordPress site, select Tools -> Import on the left nav of the admin screen.
  3. Under “Blogger”, if you haven’t already installed the Blogger importer, click “Install Now”.
  4. Click the “Run Importer” link.
  5. Click “Choose File” and navigate to your Blogger XML file.
  6. Click “Upload file and import”.

Drupal

Many resources are available to help you migrate content from Drupal to WordPress. A few are highlighted here, and you’re likely to find many others by searching the web.

  • FG Drupal to WordPress. This is compatible with Drupal 4, 5, 6, 7, 8 and 9.
  • Drupal2WordPress Plugin. Use this plugin to import terms, content, media, comments and users. Any external images included in your Drupal site can be fetched and added to the media library, and added to your pages and posts.
  • Drupal to WordPress migration SQL queries explained includes workarounds for some migration issues such as duplicate terms, terms exceeding maximum character length and duplicate URL aliases.

XML and CSV

Here are some resources that can help guide you in importing XML or CSV content into WordPress.

Joomla

For Joomla you can use FG Joomla to WordPress. This plugin has been tested with Joomla versions 1.5 through 4.0 on huge databases. It is compatible with multisite installations.

LiveJournal

WordPress includes an import tool designed specifically for importing content from LiveJournal.

  1. In your WordPress site, select Tools -> Import on the left nav of the admin screen.
  2. Under “LiveJournal”, if you haven’t already installed the LiveJournal importer, click “Install Now”.
  3. Click the “Run Importer” link.
  4. Enter your LiveJournal username and password, and click “Connect to LiveJournal and Import”.

Live Space

See Live Space Mover for an article explaining how to use a python script for importing blog entries from live space to WordPress.

Magento

The FG Magento to WooCommerce plugin migrates your Magento products and CMS pages to WooCommerce.

Mambo

You can use the plugin FG Joomla to WordPress. This WordPress plugin works with Mambo 4.5 and 4.6.

Movable Type and TypePad

WordPress includes an import tool designed specifically for importing content from Movable Type and TypePad.

  1. In your WordPress site, select Tools -> Import on the left nav of the admin screen.
  2. Under “Movable Type and TypePad”, if you haven’t already installed the importer, click “Install Now”.
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to your export file.
  5. Click “Upload file and import”.

These articles provide more information on this process:

Nucleus CMS

Here are some resources that can help guide you in migrating content from Nucleus CMS to WordPress.

PrestaShop

FG PrestaShop to WooCommerce. This WordPress plugin is compatible with PrestaShop versions 1.0 to 1.7.

Roller

See Importing From Roller.

See also Migrating a Roller Blog to WordPress.

RSS

WordPress includes an import tool designed specifically for importing content from RSS.

  1. In your WordPress site, select Tools -> Import on the left nav of the admin screen.
  2. Under “RSS”, if you haven’t already installed the importer, click “Install Now”.
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to your XML file.
  5. Click “Upload file and import”.

Serendipity

SPIP

The plugin FG SPIP to WordPress migrates categories, articles, news and images from SPIP to WordPress. It has been tested with SPIP versions 1.8, 1.9, 2.0, 3.0, 3.1 and 3.2. It is compatible with multisite installations.

Sunlog

  1. Open phpMyAdmin to see the database of your Sunlog install. You only need two tables, “blogname_entries” and “blogname_comments”.
  2. Use phpMyAdmin to export both tables as XML files.
  3. Install the WP All Import plugin to your WordPress site.
  4. Create the following field mappings:
    • headline=title
    • content=entry+more
    • date=timestamp in Unix format
    • categories="cat," with each value separated by a semicolon.

Textpattern

Tumblr

WordPress includes an import tool designed specifically for importing content from Tumblr.

  1. In your WordPress site, select Tools -> Import on the left nav of the admin screen.
  2. Under “Tumblr”, if you haven’t already installed the importer, click “Install Now”.
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to your export file.
  5. Click “Upload file and import”.
  6. Create an app on Tumblr that provides a connection point between your blog and Tumblr’s servers.
  7. Copy and paste the “OAuth Consumer Key” and “Secret Key”.
  8. Click “Connect to Tumblr”.

Twitter

There are several plugins to import your tweets into WordPress, such as Get Your Twitter Timeline into WordPress.

TypePad

See Movable Type and TypePad.

WooCommerce products (CSV)

If you’ve installed the WooCommerce plugin, this importer will already be installed. Click “Run Importer” to upload a CSV file.

WooCommerce tax rates (CSV)

If you’ve installed the WooCommerce plugin, this importer will already be installed. Click “Run Importer” to upload a CSV file.

WordPress

WordPress includes an import tool designed specifically for importing content from another WordPress blog.

  1. In your WordPress site, select Tools -> Import on the left nav of the admin screen.
  2. Under “WordPress”, if you haven’t already installed the importer, click “Install Now”.
  3. Click the “Run Importer” link.
  4. Click “Choose File” and navigate to the WXR file exported from your source.
  5. Click “Upload file and import”.

You will first be asked to map the authors in this export file to users on the blog. For each author, you may choose to map to an existing user on the blog or to create a new user. WordPress will then import each of the posts, comments and categories contained in the uploaded file into your blog. In addition, you can import attachments by checking the “Download and import file attachments” option.

Xanga

xanga.r is a program that parses xanga pages to get the post and comments. Then it can output them in the WordPress rss 2.0 xml format for WordPress to import.