WordPress.org

Support

Support » How-To and Troubleshooting » Categories and metadata not working with wp xml import

Categories and metadata not working with wp xml import

  • Hello,
    I’m attempting to import data with the syntax created by WP’s new export feature. I should make it clear that the data I’m attempting to import wasn’t actually exported by wordpress, but through the use of scripts, it appears to be exactly the same.

    The problem is that the categories, the metadata, and the dates refuse to map correctly. Has anyone attempted to do this before? Has anyone experienced the same trouble?

    Here is some of the code (one item) I’ve generated:

    <item>
    <title>Post Title</title>
    <link>removedforforum/?p=16/</link>
    <pubDate>Mon, 10 May 2004 08:50:00 -0400</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:subject>Category Name</dc:subject> 				<guid isPermaLink="false">removed/?p=16/</guid>
    <description></description>
    <content:encoded><![CDATA[<p>Blah Blah Blah</p><ul><li>list one</li><li>list two</li></ul>]]></content:encoded>
    <wp:post_id>16</wp:post_id>
    <wp:post_date>Mon, 10 May 2004 08:50:00 -0400</wp:post_date>
    <wp:post_date_gmt></wp:post_date_gmt>
    <wp:comment_status>closed</wp:comment_status>
    <wp:ping_status>closed</wp:ping_status>
    <wp:post_name>hope-in-the-midst-of-suffering</wp:post_name>
    <wp:status>publish</wp:status>
    <wp:post_parent>0</wp:post_parent>
    <wp:post_type>post</wp:post_type>
    <wp:postmeta>
    <wp:meta_key>_utw_tags_0</wp:meta_key>
    <wp:meta_value>no tags</wp:meta_value>
    </wp:postmeta>
    <wp:postmeta>
    <wp:meta_key>Scripture Book</wp:meta_key>
    <wp:meta_value>1 Peter 1:1-5:11</wp:meta_value>
    </wp:postmeta>
    </item>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Has anybody else even tried to place their own variables into the WP XML format? Has anybody had similar problems when importing one actually exported from WP?

    </wp:postmeta>
    <wp:postmeta>

    That looks the wrong way around to start
    Note suer what data must be pressent and what doata can eb left out in the feed. I am still working on my dataset

    Category is a a CDATA field…

    Try using xml notepad to compare and also I found this pho test feed script

    http://lastrss.oslab.net/lastRSS.phps

    which you might find useful in debugging

    All the best

    Sorry I did not look close enough. I realised now you ave a few elements.

    Down load a export file from your database and do a comarision of similar data with xml notepad..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Categories and metadata not working with wp xml import’ is closed to new replies.
Skip to toolbar