ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Exporting Entries via RSS/XML

February 12, 2011 7:42pm

Subscribe [2]
  • #1 / Feb 12, 2011 7:42pm

    monnibo

    5 posts

    I’m trying to export the entries and comments from 3 ExpressionEngine weblogs (single install). This is the website

    I’ve been following these instructions on moving EE to WP because they seemed the most straight forward.

    Unfortunately I’m getting the following error:

    Book Blogger Appreciation Week
    This feed contains no entries
    February 12, 2011 3:41 PM
    This feed contains no entries

    Any ideas??

  • #2 / Feb 22, 2011 12:19pm

    smartpill

    456 posts

  • #3 / Feb 22, 2011 1:33pm

    monnibo

    5 posts

    {assign_variable:master_weblog_name="default_site"}
    {exp:rss:feed blog_name="default_site"}
    
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- This is a WordPress eXtended RSS file generated by ExpressionEngine as an export of your blog. -->
    <!-- It contains information about your blog's posts, comments, trackbacks and categories. -->
    <!-- You use this file to transfer content from your ExpressionEngine blog to your WordPress blog. -->
    
    <!-- To import this information into a WordPress blog follow these steps. -->
    <!-- 1. Log into that blog as an administrator. -->
    <!-- 2. Go to Tools: Import in the blog's admin panels (or Manage: Import in older versions of WordPress). -->
    <!-- 3. Choose "WordPress" from the list. -->
    <!-- 4. Upload this file using the form provided on that page. -->
    <!-- 5. You will first be asked to map the authors in this export file to users -->
    <!--    on the blog.  For each author, you may choose to map to an -->
    <!--    existing user on the blog or to create a new user -->
    <!-- 6. WordPress will then import each of the posts, comments, trackbacks and categories -->
    <!--    contained in this file into your blog -->
    
    <!-- generator="WordPress/2.8.4" created="2009-09-20 01:49"-->
    <rss version="2.0"
        xmlns:excerpt="http://wordpress.org/export/1.0/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.0/"
    >
    
    <channel>
        <title>{weblog_name}</title>
        <link>{weblog_url}</link>
        <description>{weblog_description}</description>
        </pubDate>
        <generator>http://wordpress.org/?v=2.8.4</generator>
        <language>{weblog_language}</language>
        <wp:wxr_version>1.0</wp:wxr_version>
        <wp:base_site_url>{trimmed_url}</wp:base_site_url>
        <wp:base_blog_url>{trimmed_url}</wp:base_blog_url>
    
    {exp:weblog:entries weblog="default_site" dynamic_start="on" limit="9999" offset="0" sort="asc" rdf="off"}
            <item>
    <title>{exp:xml_encode}{title}{/exp:xml_encode}</title>
    <link></link>
    {entry_date format="%r"}</pubDate>
    <dc:creator><![CDATA[{author}]]></dc:creator>
    {categories}
            <category><![CDATA[{category_name}]]></category>
    
            <category domain="category" nicename="{category_url_title}"><![CDATA[{category_name}]]></category>
    
    {/categories}
    
    <guid isPermaLink="false"></guid>
    <description></description>
    <content:encoded><![CDATA[{body}
    {extended}]]></content:encoded>
    <excerpt:encoded><![CDATA[]]></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>publish</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>
    {embed="export/comments" the_entry_id="{entry_id}"}
        </item>
    {/exp:weblog:entries}    
    </channel>
    </rss>
    {/exp:rss:feed}
  • #4 / Feb 22, 2011 1:40pm

    smartpill

    456 posts

    OK. Is the weblog short name for the weblog you are trying to export actually “default_site”?

  • #5 / Feb 22, 2011 4:51pm

    monnibo

    5 posts

    Yes. I have 3 weblogs. I’ve tried all three names in that spot and nothing works (“default_site” “giveaways” and “awards”). I keep getting the same “No posts” message in the RSS feed.

  • #6 / Feb 22, 2011 5:18pm

    smartpill

    456 posts

    Yup. Doesn’t work the way it is. Ty changing line 2 from

    {exp:rss:feed blog_name="default_site"}

    to

    {exp:rss:feed weblog="default_site"}
  • #7 / Feb 22, 2011 6:02pm

    monnibo

    5 posts

    Thank you! It worked (well, there were a few parsing errors with oddly formatted posts where someone had copied and pasted the text from MS Word, but I fixed it and then it was fine).

    Thank you so much Kyle! Off to try the next step(s)... fingers crossed it works.

  • #8 / Feb 22, 2011 6:05pm

    smartpill

    456 posts

    You’re welcome. Glad I could help.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases