We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

XML Grab - wordpress import not working

Development and Programming

Sean C. Smith's avatar
Sean C. Smith
3,818 posts
15 years ago
Sean C. Smith's avatar Sean C. Smith

Hello,

I’m trying to import a wordpress blog using xml grab. Two problems 1) I’m using simpletags and would like to import the tags into a field called tags but am not sure how to do that.

2)when I hit the template with this code only one entry gets imported and there is no title and no text - just a date and author. I’ve double checked (copied and pasted) the custom field and it is correct.

What am I doing wrong?

Thank you for your help.

My xml grab template

{exp:xmlgrab url="http://acmconsulting.ca/wordpress.2010-06-07.xml" 
      itempath="/channel/item"
      weblog="10" 
      author="4"
      title="title"
      date="pubDate"
      category_group="4"
      category="19"
      category_field="category"
      use="content"
      fields="blog-entry"}

and the wordpress xml file is here in truncated form

<item>
<title>Too many sources of information</title>
<link>http://acmconsulting.wordpress.com/2010/02/12/too-many-sources-of-information/</link>
Fri, 12 Feb 2010 11:36:42 +0000</pubDate>
<dc:creator><![CDATA[Andrew Miller]]></dc:creator>

        <category><![CDATA[Business growth]]></category>

        <category domain="category" nicename="business-growth"><![CDATA[Business growth]]></category>

        <category domain="tag"><![CDATA[canada]]></category>

        <category domain="tag" nicename="canada"><![CDATA[canada]]></category>

        <category domain="tag"><![CDATA[CREA]]></category>

        <category domain="tag" nicename="crea"><![CDATA[CREA]]></category>

        <category domain="tag"><![CDATA[Google]]></category>

        <category domain="tag" nicename="google"><![CDATA[Google]]></category>

        <category domain="tag"><![CDATA[msl.ca]]></category>

        <category domain="tag" nicename="msl-ca"><![CDATA[msl.ca]]></category>

        <category domain="tag"><![CDATA[real estate]]></category>

        <category domain="tag" nicename="real-estate"><![CDATA[real estate]]></category>

<guid isPermaLink="false">http://acmconsulting.wordpress.com/?p=272</guid>
<description></description>
<content:encoded><![CDATA[ a bunch of text deleted for brevity]]></content:encoded>
<excerpt:encoded><![CDATA[]]></excerpt:encoded>
<wp:post_id>272</wp:post_id>
<wp:post_date>2010-02-12 11:36:42</wp:post_date>
<wp:post_date_gmt>2010-02-12 11:36:42</wp:post_date_gmt>
<wp:comment_status>open</wp:comment_status>
<wp:ping_status>open</wp:ping_status>
<wp:post_name>too-many-sources-of-information</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>
<wp:is_sticky>0</wp:is_sticky>
<wp:postmeta>
<wp:meta_key>_edit_last</wp:meta_key>
<wp:meta_value><![CDATA[7168156]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key>_edit_lock</wp:meta_key>
<wp:meta_value><![CDATA[1265974608]]></wp:meta_value>
</wp:postmeta>
<wp:postmeta>
<wp:meta_key>email_notification</wp:meta_key>
<wp:meta_value><![CDATA[1265974606]]></wp:meta_value>
</wp:postmeta>
    </item>
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.