WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WXR Importer only imports first item (3 posts)

  1. screenagekicks
    Member
    Posted 3 years ago #

    Hi

    I've run into a strange issue with the WordPress XML importer.

    Everything has been working fine, and I've been able to import posts with custom fields and taxonomies without any problems... but suddenly the importer is not working.

    I have tried importing very simple xml tests on various WordPress sites, on different web hosting servers, but I'm always getting the same result - just the first item is imported.

    Here's an example of what I've been testing:

    <?xml version="1.0" encoding="UTF-8"?>
    <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>
    <wp:wxr_version>1.0</wp:wxr_version>
    <item>
    	<title>test1</title>
    	<dc:creator><![CDATA[admin]]></dc:creator>
    	<wp:status>publish</wp:status>
    	<wp:post_type>post</wp:post_type>
    </item>
    <item>
    	<title>test2</title>
    	<dc:creator><![CDATA[admin]]></dc:creator>
    	<wp:status>publish</wp:status>
    	<wp:post_type>post</wp:post_type>
    </item>
    </channel>
    </rss>

    I'm running WP 3.1 and Importer 0.3.

    Anyone experienced this before or got any suggestions?

    Thanks!

  2. screenagekicks
    Member
    Posted 3 years ago #

    XML declaration should be:

    <xml version="1.0" encoding="UTF-8">

  3. wasanajones
    Member
    Posted 3 years ago #

    THANK YOU !!!

    days... and days...

Topic Closed

This topic has been closed to new replies.

About this Topic