所以,我最近继承了一个非常古老的(可追溯到2011年的EE v2.1.1)Expression Engine网站,我想将所有内容迁移到新的WordPress安装 - 目前使用XAMPP本地构建。
我试图遵循某些教程,但生成的XML文件并没有提供任何内容,因此导入无用。我创建了一个带有新导出文件(xml)的新模板组,其中包含以下代码:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- To import this information into a WordPress site follow these steps: -->
<!--RUN THIS FILE IN FIREFOX OR IE-->
<!--VIEW PAGE SOURCE-->
<!--COPY-PASTE PAGE SOURCE INTO TEXT EDITOR AND SAVE AS .WXR FILE-->
<!--REMOVE "?'s" FROM XML VERSION AT TOP OF THIS PAGE-->
<!--COMMENT OUT LINE 1309, 1310, 1311 IN wp-includes/kses.php -->
<!--THEN FOLLOW THE STEPS BELOW-->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
<!-- 4. Activate & Run Importer. -->
<!-- 5. Upload this file using the form provided on that page. -->
<!-- 6. You will first be asked to map the authors in this export file to users -->
<!-- on the site. For each author, you may choose to map to an -->
<!-- existing user on the site or to create a new user. -->
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
<!-- contained in this file into your site. -->
<!-- generator="WordPress/3.1.2" created="2011-07-09 05:45" -->
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.1/"
>
<channel>
<title>{site_name}</title>
<link>{site_url}</link>
<description>{site_description}</description>
<pubDate></pubDate>
<language>en</language>
<wp:wxr_version>1.1</wp:wxr_version>
<wp:base_site_url>http://localhost/wprap/wordpress/</wp:base_site_url>
<wp:base_blog_url>http://localhost/wprap/wordpress</wp:base_blog_url>
<generator>http://wordpress.org/?v=3.1.2</generator>
{exp:channel:entries channel="default_site" orderby="date" sort="desc" limit="500" offset="0" rdf="off"}
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link></link>
<pubDate>{entry_date format="%r"}</pubDate>
<dc:creator><![CDATA[{author}]]></dc:creator>
<guid isPermaLink="false">http://localhost/wprap/wordpress/?p={entry_id}</guid>
<description></description>
<content:encoded><![CDATA[{if publications}{publications}{if:elseif cc_content}{cc_content}{if:else}{article_content}{/if}]]></content:encoded>
<excerpt:encoded><![CDATA[{if blog_short}{blog_short}{if:elseif cc_teaser}{cc_teaser}{if:else}{teaser}{/if}]]></excerpt:encoded>
<wp:post_id></wp:post_id>
<wp:post_date>{entry_date format="%Y-%m-%d %H:%i:%s"}</wp:post_date>
<wp:post_date_gmt>{gmt_date format="%Y-%m-%d %H:%i:%s"}</wp:post_date_gmt>
<wp:comment_status>open</wp:comment_status>
<wp:ping_status>open</wp:ping_status>
<wp:post_name>{url_title}</wp:post_name>
<wp:status>{if status == "open"}publish{if:elseif status == "review"}pending{if:elseif status == "closed"}private{if:elseif status == "draft"}draft{if:else}publish{/if}</wp:status>
<wp:post_parent>0</wp:post_parent>
<wp:menu_order>0</wp:menu_order>
<wp:post_type>post</wp:post_type>
<wp:post_password></wp:post_password>
<wp:is_sticky>0</wp:is_sticky>
{categories}
<category domain="category" nicename="{if category_url_title == "gallery"}media{if:else}{category_url_title}{/if}"><![CDATA[{if category_name == "gallery"}Media{if:else}{category_name}{/if}]]></category>
{/categories}
<wp:postmeta>
<wp:meta_key>_edit_last</wp:meta_key>
<wp:meta_value><![CDATA[1]]></wp:meta_value>
</wp:postmeta>
{if article_links}
<wp:postmeta>
<wp:meta_key>Associated Links</wp:meta_key>
<wp:meta_value><![CDATA[{article_links}]]></wp:meta_value>
</wp:postmeta>
{/if}
<wp:postmeta>
<wp:meta_key>_su_rich_snippet_type</wp:meta_key>
<wp:meta_value><![CDATA[none]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key>_encloseme</wp:meta_key>
<wp:meta_value><![CDATA[1]]></wp:meta_value>
</wp:postmeta>
</item>
{/exp:channel:entries}
</channel>
</rss>enter code here
我在网站上只看到3个频道(图库,出版物,静态),但我不知道在xml文件中实际输入这些频道的位置,与类别或自定义字段相同。我从来没有和EE合作过,所以我不知所措。
提前致谢!
答案 0 :(得分:0)
使用以下方式管理以解决此问题:
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
<!-- 4. Activate & Run Importer. -->
<!-- 5. Upload this file using the form provided on that page. -->
<!-- 6. You will first be asked to map the authors in this export file to users -->
<!-- on the site. For each author, you may choose to map to an -->
<!-- existing user on the site or to create a new user. -->
<!-- 7. WordPress will then import each of the posts, pages, comments, categories, etc. -->
<!-- contained in this file into your site. -->
<!-- generator="WordPress/3.3.2" created="2012-06-25 23:09" -->
<rss version="2.0"
xmlns:excerpt="http://wordpress.org/export/1.1/excerpt/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:wp="http://wordpress.org/export/1.1/"
>
<channel>
<title>{site_name}</title>
<link>{site_url}</link>
<description></description>
<pubDate></pubDate>
<language>en</language>
<wp:wxr_version>1.1</wp:wxr_version>
<wp:base_site_url>http://localhost/wprap/wordpress/</wp:base_site_url>
<wp:base_blog_url>http://localhost/wprap/wordpress</wp:base_blog_url>
<generator>http://wordpress.org/?v=3.3.2</generator>
{exp:channel:entries {if segment_3 != ""}channel="{segment_3}"{/if} orderby="date" sort="desc" limit="500" rdf="off" }
<item>
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
<link></link>
<pubDate>{entry_date format="%r"}</pubDate>
<dc:creator><![CDATA[{author}]]></dc:creator>
<guid isPermaLink="false">http://localhost/wprap/wordpress/?p={entry_id}</guid>
<description></description>
<excerpt:encoded><![CDATA[{content}]]></excerpt:encoded>
<content:encoded><![CDATA[{content}]]></content:encoded>
{categories}
<category domain="category" nicename="{category_url_title}"><![CDATA[{category_name}]]></category>
{/categories}
<wp:post_type>post</wp:post_type>
<wp:post_id></wp:post_id>
<wp:post_date>{entry_date format="%Y-%m-%d %H:%i:%s"}</wp:post_date>
<wp:post_date_gmt>{gmt_date format="%Y-%m-%d %H:%i:%s"}</wp:post_date_gmt>
<wp:comment_status>open</wp:comment_status>
<wp:ping_status>open</wp:ping_status>
<wp:post_name>{url_title}</wp:post_name>
<wp:status>{if status == "open"}publish{if:elseif status == "review"}pending{if:elseif status == "closed"}private{if:elseif status == "draft"}draft{if:else}publish{/if}</wp:status>
<wp:post_parent>0</wp:post_parent>
<wp:menu_order>0</wp:menu_order>
<wp:post_password></wp:post_password>
<wp:is_sticky>0</wp:is_sticky>
<wp:postmeta>
<wp:meta_key>_edit_last</wp:meta_key>
<wp:meta_value><![CDATA[1]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key>_su_rich_snippet_type</wp:meta_key>
<wp:meta_value><![CDATA[none]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key>_encloseme</wp:meta_key>
<wp:meta_value><![CDATA[1]]></wp:meta_value>
</wp:postmeta>
</item>
{/exp:channel:entries}
</channel>
</rss>
export xml bulk-import
然而,这仍然给了我两个问题:
如果有人作为如何解决这个问题的任何线索,非常感谢。否则,这将是手工(和乏味)劳动。