WordPress WXR规范 [英] WordPress WXR Specification

查看:74
本文介绍了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天全站免登陆