WordPress WXR 规范 [英] WordPress WXR Specification

查看:20
本文介绍了WordPress WXR 规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查找 WordPress WXR 导入/导出标准的规范,但我无法从 WordPress 中找到有关该标准的任何官方文档.

I'm trying to find a spec for the WordPress WXR import/export standard and I'm unable to find any official documentation from WordPress on the standard.

有谁知道官方资源可以准确地告诉我如何生成 WXR 文件,以便自动导入 WordPress.com 或 WordPress 自托管网站?

Does anyone know of an official resource that could tell me exactly how to produce a WXR file so it will automatically import into either WordPress.com or WordPress self-hosted sites?

我特别想为现有的 CMS 创建一个 WXR 导出系统,以便用户可以轻松迁移到 WordPress.

I'm specifically trying to create a WXR export system for an existing CMS so that users can move to WordPress easily.

推荐答案

我向 WordPress 核心开发人员 John O'Nolan 提出了这个问题,他将我的问题转发给了核心提交者 Aaron Jorbin.O'Nolan 回应说(我在解释)没有任何关于 WXR 标准的官方文档,但是对 WXR 导出进行逆向工程应该会给我我需要的所有信息.

I posed this question to John O'Nolan, a WordPress core developer, who forwarded my question to core committer Aaron Jorbin. O'Nolan responded by saying (I'm paraphrasing) that there isn't any official documentation on the WXR standard, but that reverse engineering a WXR export should give me all the information I need.

O'Nolan 还指出,比博客文章内容更复杂的数据可能最好通过数据库转换/迁移而不是导入来处理.我倾向于同意这里.

O'Nolan also noted that data more complex than blog post content is likely best dealt with through a database conversion/migration, rather than an import. I tend to agree here.

我发现这两个链接有助于我对 WXR 标准进行逆向工程:

I found these two links to be of some help in my effort to reverse engineer the WXR standard:

http://ipggi.wordpress.com/2011/03/16/the-wordpress-extended-rss-wxr-exportimport-xml-document-format-decoded-and-explained/

http:///olalindberg.com/2008/write-your-own-wxr-file-to-migrate-custom-cms-to-wordpress/

后一个链接专门处理附件,这对我当前的项目至关重要.

The latter link specifically deal with attachments, something crucial for my current project.

我希望这对任何对 WXR 感兴趣的人有所帮助.

I hope this helps anyone else who is curious about WXR.

这篇关于WordPress WXR 规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆