Created
March 27, 2014 05:29
-
-
Save codearachnid/9800945 to your computer and use it in GitHub Desktop.
Export your Expression Engine 1.x content into WordPress compatible importable XML.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{assign_variable:my_weblog="default_site"} | |
{assign_variable:my_template_group="site"} | |
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- 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>{site_url}</wp:base_site_url> | |
<wp:base_blog_url>{site_url}</wp:base_blog_url> | |
<generator>http://wordpress.org/?v=3.3.2</generator> | |
{exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="100" rdf="off" paginate="top"} | |
{paginate}<!-- Page {current_page} of {total_pages} pages {pagination_links} -->{/paginate} | |
<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">{site_url}?p={entry_id}</guid> --} | |
<description></description> | |
<content:encoded><![CDATA[{summary}{body}{extended}]]></content:encoded> | |
{categories} | |
<category domain="category" nicename="{category_url_title}"><![CDATA[{category_name}]]></category> | |
{/categories} | |
{!-- post IS THE USUAL CONTENT TYPE, BUT IF YOU ARE EXPORTING PAGES, SWITCH THIS --} | |
<wp:post_type>post</wp:post_type> | |
{!-- <wp:post_type>page</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>publish</wp:status> | |
{exp:comment:entries sort="desc" entry_id="{entry_id}"} | |
<wp:comment> | |
<wp:comment_id>{comment_id}</wp:comment_id> | |
<wp:comment_author><![CDATA[{name}]]></wp:comment_author> | |
<wp:comment_author_email>{url_or_email}</wp:comment_author_email> | |
<wp:comment_author_url>{url}</wp:comment_author_url> | |
<wp:comment_author_IP>{ip_address}</wp:comment_author_IP> | |
<wp:comment_date>{comment_date format="%Y-%m-%d %h:%i:%s"}</wp:comment_date> | |
<wp:comment_date_gmt>{gmt_comment_date format="%Y-%m-%d %h:%i:%s"}</wp:comment_date_gmt> | |
<wp:comment_content><![CDATA[{comment}]]></wp:comment_content> | |
<wp:comment_approved>1</wp:comment_approved> | |
<wp:comment_type></wp:comment_type> | |
<wp:comment_parent>0</wp:comment_parent> | |
<wp:comment_user_id>0</wp:comment_user_id> | |
</wp:comment> | |
{/exp:comment:entries} | |
</item> | |
{/exp:weblog:entries} | |
</channel> | |
</rss> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment