Title: WordPress 导入工具
Author: WordPress.org
Published: <strong>2010 年 5 月 20 日</strong>
Last modified: 2025 年 11 月 5 日

---

搜索插件

![](https://ps.w.org/wordpress-importer/assets/banner-772x250.png?rev=547654)

![](https://ps.w.org/wordpress-importer/assets/icon.svg?rev=2791650)

# WordPress 导入工具

 作者：[WordPress.org](https://profiles.wordpress.org/wordpressdotorg/)

[下载](https://downloads.wordpress.org/plugin/wordpress-importer.0.9.5.zip)

 * [详情](https://cn.wordpress.org/plugins/wordpress-importer/#description)
 * [评价](https://cn.wordpress.org/plugins/wordpress-importer/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wordpress-importer/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wordpress-importer/#developers)

 [支持](https://wordpress.org/support/plugin/wordpress-importer/)

## 描述

WordPress 导入工具将从WordPress导出文件导入以下内容：

 * Posts, pages and other custom post types
 * Comments and comment meta
 * Custom fields and post meta
 * Categories, tags and terms from custom taxonomies and term meta
 * 作者

For further information and instructions please see the [documention on Importing Content](https://wordpress.org/support/article/importing-content/#wordpress).

### Filters

The importer has a couple of filters to allow you to completely enable/block certain
features:

 * `import_allow_create_users`: return false if you only want to allow mapping to
   existing users
 * `import_allow_fetch_attachments`: return false if you do not wish to allow importing
   and downloading of attachments
 * `import_attachment_size_limit`: return an integer value for the maximum file 
   size in bytes to save (default is 0, which is unlimited)

There are also a few actions available to hook into:

 * `import_start`: occurs after the export file has been uploaded and author import
   settings have been chosen
 * `import_end`: called after the last output from the importer

## 安装

The quickest method for installing the importer is:

 1. Visit Tools -> Import in the WordPress dashboard
 2. Click on the WordPress link in the list of importers
 3. Click “Install Now”
 4. Finally click “Activate Plugin & Run Importer”

If you would prefer to do things manually then follow these instructions:

 1. 将`wordpress-importer`文件夹上载到`/wp-content/plugins/`目录
 2. 通过WordPress的“插件”菜单激活插件
 3. Go to the Tools -> Import screen, click on WordPress

## 常见问题

### Help! I’m getting out of memory errors or a blank screen.

If your exported file is very large, the import script may run into your host’s 
configured memory limit for PHP.

A message like “Fatal error: Allowed memory size of 8388608 bytes exhausted” indicates
that the script can’t successfully import your XML file under the current PHP memory
limit. If you have access to the php.ini file, you can manually increase the limit;
if you do not (your WordPress installation is hosted on a shared server, for instance),
you might have to break your exported XML file into several smaller pieces and run
the import script one at a time.

For those with shared hosting, the best alternative may be to consult hosting support
to determine the safest approach for running the import. A host may be willing to
temporarily lift the memory limit and/or run the process directly from their end.

— [Support Article: Importing Content](https://wordpress.org/support/article/importing-content/#before-importing)

## 评价

![](https://secure.gravatar.com/avatar/112a4cf71248d2427ea6f485ad6961f4e662f620e1ffa200c37866d261dbc8f6?
s=60&d=retro&r=g)

### 󠀁[Migrated Without Stress](https://wordpress.org/support/topic/migrated-without-stress/)󠁿

 [houston41](https://profiles.wordpress.org/houston41/) 2026 年 6 月 2 日

just moved my whole blog to a new domain & this did the job perfectly. posts, categories,
media all came through clean. honestly didn’t expect it to be this easy ngl

![](https://secure.gravatar.com/avatar/b7e8552be5c586fc9ef20e491218a9090ee7832d47dad825fb464cbcce85b386?
s=60&d=retro&r=g)

### 󠀁[Gets It Done](https://wordpress.org/support/topic/gets-it-done-8/)󠁿

 [kaiya33](https://profiles.wordpress.org/kaiya33/) 2026 年 5 月 26 日

Moved all my content over successfully. Large imports timed out so had to split 
it up. Images were slow but came through. Does the job

![](https://secure.gravatar.com/avatar/4da833717319aea353ec3ea7911219796b702548f903960697e6adb71d1fd161?
s=60&d=retro&r=g)

### 󠀁[did the job well](https://wordpress.org/support/topic/did-the-job-well-4/)󠁿

 [Daniel](https://profiles.wordpress.org/daniel710/) 2026 年 5 月 22 日

needed to migrate my old site asap. this worked pretty flawlessly tbh. pulled in
my posts n comments fast. had a tiny glitch with some pics but nothing serious cz
it saved me hrs of copy pasting. thx

![](https://secure.gravatar.com/avatar/9cf63c14fe2e85ccdca005bad4bb0669b6155f02a4ce1571b90d59308dc6b60b?
s=60&d=retro&r=g)

### 󠀁[Works, Not Perfect](https://wordpress.org/support/topic/works-not-perfect/)󠁿

 [devin984](https://profiles.wordpress.org/devin984/) 2026 年 5 月 20 日

does what it says tbh. moved all my posts & pages just fine. but media files were
a bit iffy, some images didn’t pull over cz of server limits. solid for basic migrations
tho. wud rec

![](https://secure.gravatar.com/avatar/a9ea22c519fa216722710157f7a7c5b6c2d3b4146bdc4e7aa91712d0346eb0e1?
s=60&d=retro&r=g)

### 󠀁[Saved me hours](https://wordpress.org/support/topic/saved-me-hours-22/)󠁿

 [justina69](https://profiles.wordpress.org/justina69/) 2026 年 5 月 19 日

used this to move my old blog content over and it worked flawlessly. super fast 
and didn’t lose any pics. honestly a lifesaver cz manual copy pasting is the worst.
thx

![](https://secure.gravatar.com/avatar/b42b32d05fc2a98839b738609aa1320d1f24b9cdb21638cadb5ba1a01e2f403e?
s=60&d=retro&r=g)

### 󠀁[Gets the Job Done](https://wordpress.org/support/topic/gets-the-job-done-211/)󠁿

 [shannon58](https://profiles.wordpress.org/shannon58/) 2026 年 5 月 14 日

Migrated my whole site w dis & it went smoothly mostly. Took a bit to figure out
bt once u get it, wrks fine. Nthing fancy bt does wat u need it to do tbh

 [ 阅读所有331条评价 ](https://wordpress.org/support/plugin/wordpress-importer/reviews/)

## 贡献者及开发者

「WordPress 导入工具」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

「WordPress 导入工具」插件已被翻译至 60 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wordpress-importer/contributors)
为本插件所做的贡献。

[帮助将「WordPress 导入工具」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wordpress-importer)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wordpress-importer/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wordpress-importer/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wordpress-importer/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wordpress-importer/)。

## 更新日志

#### 0.9.5

 * Rewrite CSS URLs in block markup (e.g., cover blocks with background images).
 * Code refactoring: Extract import processing logic into separate methods to prepare
   for future streaming support.
 * Update Playwright and @playwright/test dependencies from 1.55.0 to 1.56.1.
 * Clean up vendor-patched dependencies by removing dotfiles and GitHub workflow
   files.

#### 0.9.4

 * Fix a bug that caused self-closing blocks to be incorrectly serialized during
   URL rewriting.

#### 0.9.3

 * Rewrite attachment URLs to the new URL structure

#### 0.9.2

 * Rewrite site URLs in block attributes.

#### 0.9.1

 * Add support for rewriting site URLs in post content and excerpts.

#### 0.9.0

 * Introduce a new XML parser class `WXR_Parser_XML_Processor` that replaces the
   
   deprecated `WXR_Parser_Regex` class.

#### 0.8.4

 * Fix a bug on deserialization of untrusted input.
 * Update compatibility tested-up-to to WordPress 6.7.2.

#### 0.8.3

 * Update compatibility tested-up-to to WordPress 6.7.
 * Update call to `post_exists` to include `post_type` in the query
 * PHP 8.4 compatibility fixes.

#### 0.8.2

 * Update compatibility tested-up-to to WordPress 6.4.2.
 * Update doc URL references.
 * Adjust workflow triggers.

#### 0.8.1

 * Update compatibility tested-up-to to WordPress 6.2.
 * Update paths to build status badges.

#### 0.8

 * Update minimum WordPress requirement to 5.2.
 * Update minimum PHP requirement to 5.6.
 * Update compatibility tested-up-to to WordPress 6.1.
 * PHP 8.0, 8.1, and 8.2 compatibility fixes.
 * Fix a bug causing blank lines in content to be ignored when using the Regex Parser.
 * Fix a bug resulting in a PHP fatal error when IMPORT_DEBUG is enabled and a category
   creation error occurs.
 * Improved Unit testing & automated testing.

#### 0.7

 * Update minimum WordPress requirement to 3.7 and ensure compatibility with PHP
   7.4.
 * Fix bug that caused not importing term meta.
 * Fix bug that caused slashes to be stripped from imported meta data.
 * Fix bug that prevented import of serialized meta data.
 * Fix file size check after download of remote files with HTTP compression enabled.
 * Improve accessibility of form fields by adding missing labels.
 * Improve imports for remote file URLs without name and/or extension.
 * Add support for `wp:base_blog_url` field to allow importing multiple files with
   WP-CLI.
 * Add support for term meta parsing when using the regular expressions or XML parser.
 * Developers: All PHP classes have been moved into their own files.
 * Developers: Allow to change `IMPORT_DEBUG` via `wp-config.php` and change default
   value to the value of `WP_DEBUG`.

#### 0.6.4

 * Improve PHP7 compatibility.
 * Fix bug that caused slashes to be stripped from imported comments.
 * Fix for various deprecation notices including `wp_get_http()` and `screen_icon()`.
 * Fix for importing export files with multiline term meta data.

#### 0.6.3

 * Add support for import term metadata.
 * Fix bug that caused slashes to be stripped from imported content.
 * Fix bug that caused characters to be stripped inside of CDATA in some cases.
 * Fix PHP notices.

#### 0.6.2

 * Add `wp_import_existing_post` filter, see [Trac ticket #33721](https://core.trac.wordpress.org/ticket/33721).

#### 0.6

 * Support for WXR 1.2 and multiple CDATA sections
 * Post aren’t duplicates if their post_type’s are different

#### 0.5.2

 * Double check that the uploaded export file exists before processing it. This 
   prevents incorrect error messages when
    an export file is uploaded to a server
   with bad permissions and WordPress 3.3 or 3.3.1 is being used.

#### 0.5

 * Import comment meta (requires export from WordPress 3.2)
 * Minor bugfixes and enhancements

#### 0.4

 * Map comment user_id where possible
 * Import attachments from `wp:attachment_url`
 * Upload attachments to correct directory
 * Remap resized image URLs correctly

#### 0.3

 * Use an XML Parser if possible
 * Proper import support for nav menus
 * … and much more, see [Trac ticket #15197](https://core.trac.wordpress.org/ticket/15197)

#### 0.1

 * Initial release

## 社区插件

该插件由社区开发和支持。 [为该插件贡献](https://github.com/WordPress/wordpress-importer)

## 额外信息

 *  版本 **0.9.5**
 *  最后更新：**7 月前**
 *  活跃安装数量 **超过 2 百万**
 *  WordPress 版本 ** 5.2 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.2 或更高版本 **
 *  语言
 * [Albanian](https://sq.wordpress.org/plugins/wordpress-importer/) 、 [Arabic](https://ar.wordpress.org/plugins/wordpress-importer/)、
   [Azerbaijani](https://az.wordpress.org/plugins/wordpress-importer/) 、 [Bosnian](https://bs.wordpress.org/plugins/wordpress-importer/)、
   [Catalan](https://ca.wordpress.org/plugins/wordpress-importer/) 、 [Chinese (China)](https://cn.wordpress.org/plugins/wordpress-importer/)、
   [Chinese (Taiwan)](https://tw.wordpress.org/plugins/wordpress-importer/) 、 [Croatian](https://hr.wordpress.org/plugins/wordpress-importer/)、
   [Czech](https://cs.wordpress.org/plugins/wordpress-importer/) 、 [Danish](https://da.wordpress.org/plugins/wordpress-importer/)、
   [Dutch](https://nl.wordpress.org/plugins/wordpress-importer/) 、 [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/wordpress-importer/)、
   [English (Australia)](https://en-au.wordpress.org/plugins/wordpress-importer/)、
   [English (Canada)](https://en-ca.wordpress.org/plugins/wordpress-importer/) 、
   [English (New Zealand)](https://en-nz.wordpress.org/plugins/wordpress-importer/)、
   [English (South Africa)](https://en-za.wordpress.org/plugins/wordpress-importer/)、
   [English (UK)](https://en-gb.wordpress.org/plugins/wordpress-importer/) 、 [English (US)](https://wordpress.org/plugins/wordpress-importer/)、
   [Esperanto](https://eo.wordpress.org/plugins/wordpress-importer/) 、 [Finnish](https://fi.wordpress.org/plugins/wordpress-importer/)、
   [French (Belgium)](https://fr-be.wordpress.org/plugins/wordpress-importer/) 、
   [French (Canada)](https://fr-ca.wordpress.org/plugins/wordpress-importer/) 、
   [French (France)](https://fr.wordpress.org/plugins/wordpress-importer/) 、 [Galician](https://gl.wordpress.org/plugins/wordpress-importer/)、
   [German](https://de.wordpress.org/plugins/wordpress-importer/) 、 [Greek](https://el.wordpress.org/plugins/wordpress-importer/)、
   [Gujarati](https://gu.wordpress.org/plugins/wordpress-importer/) 、 [Hebrew](https://he.wordpress.org/plugins/wordpress-importer/)、
   [Hungarian](https://hu.wordpress.org/plugins/wordpress-importer/) 、 [Icelandic](https://is.wordpress.org/plugins/wordpress-importer/)、
   [Indonesian](https://id.wordpress.org/plugins/wordpress-importer/) 、 [Italian](https://it.wordpress.org/plugins/wordpress-importer/)、
   [Japanese](https://ja.wordpress.org/plugins/wordpress-importer/) 、 [Korean](https://ko.wordpress.org/plugins/wordpress-importer/)、
   [Lithuanian](https://lt.wordpress.org/plugins/wordpress-importer/) 、 [Malay](https://ms.wordpress.org/plugins/wordpress-importer/)、
   [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/wordpress-importer/) 、
   [Norwegian (Nynorsk)](https://nn.wordpress.org/plugins/wordpress-importer/) 、
   [Pashto](https://ps.wordpress.org/plugins/wordpress-importer/) 、 [Persian](https://fa.wordpress.org/plugins/wordpress-importer/)、
   [Polish](https://pl.wordpress.org/plugins/wordpress-importer/) 、 [Portuguese (Brazil)](https://br.wordpress.org/plugins/wordpress-importer/)、
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/wordpress-importer/)、
   [Romanian](https://ro.wordpress.org/plugins/wordpress-importer/) 、 [Russian](https://ru.wordpress.org/plugins/wordpress-importer/)、
   [Slovak](https://sk.wordpress.org/plugins/wordpress-importer/) 、 [Spanish (Argentina)](https://es-ar.wordpress.org/plugins/wordpress-importer/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/wordpress-importer/) 、 [Spanish (Colombia)](https://es-co.wordpress.org/plugins/wordpress-importer/)、
   [Spanish (Ecuador)](https://es-ec.wordpress.org/plugins/wordpress-importer/) 、
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/wordpress-importer/) 、
   [Spanish (Peru)](https://pe.wordpress.org/plugins/wordpress-importer/) 、 [Spanish (Spain)](https://es.wordpress.org/plugins/wordpress-importer/)、
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/wordpress-importer/) 、
   [Swedish](https://sv.wordpress.org/plugins/wordpress-importer/) 、 [Thai](https://th.wordpress.org/plugins/wordpress-importer/)、
   [Turkish](https://tr.wordpress.org/plugins/wordpress-importer/) 、 [Uighur](https://ug.wordpress.org/plugins/wordpress-importer/)、
   [Ukrainian](https://uk.wordpress.org/plugins/wordpress-importer/) 、 [Vietnamese](https://vi.wordpress.org/plugins/wordpress-importer/)
   和 [Welsh](https://cy.wordpress.org/plugins/wordpress-importer/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wordpress-importer)
 * 标签
 * [importer](https://cn.wordpress.org/plugins/tags/importer/)
 *  [高级视图](https://cn.wordpress.org/plugins/wordpress-importer/advanced/)

## 评级

 3.1 星（最高 5 星）。

 *  [  131 条 5 星评价     ](https://wordpress.org/support/plugin/wordpress-importer/reviews/?filter=5)
 *  [  35 条 4 星评价     ](https://wordpress.org/support/plugin/wordpress-importer/reviews/?filter=4)
 *  [  23 条 3 星评价     ](https://wordpress.org/support/plugin/wordpress-importer/reviews/?filter=3)
 *  [  30 条 2 星评价     ](https://wordpress.org/support/plugin/wordpress-importer/reviews/?filter=2)
 *  [  112 条 1 星评价     ](https://wordpress.org/support/plugin/wordpress-importer/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wordpress-importer/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wordpress-importer/reviews/)

## 贡献者

 *   [ WordPress.org ](https://profiles.wordpress.org/wordpressdotorg/)

## 支持

最近两个月解决的问题：

     总计 12，已解决 0

 [查看支持论坛](https://wordpress.org/support/plugin/wordpress-importer/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://wordpressfoundation.org/donate/)