It seems like there is a bug with importing custom post types.

I was able to get my regular posts to import just great, albeit with the easily fixable formatting issue.

But then when I went to import my custom post type, the module seems to see the custom posts (1300+ of them), before import in the "green text" area, but after I set the options to import, it doesn't actually import any of them. In the progress screen where I saw momentary titles being shown on the screen when I was importing my regular posts, I'm now not seeing anything come up. Bug?

Comments

lavamind’s picture

I'm not sure what you mean by "custom post type". Do you mean posts created with a 3rd party plugin? If so, which plugin?

Also, if you could post your XML file it would help a lot.

TrevorG’s picture

Custom Post Types http://codex.wordpress.org/Post_Types
are akin to our custom content types with CCK, although of course, CCK is vastly superior and a much more mature module than the relatively new-to-WP custom post type.

So there were only Posts and Pages, now there is official support for Custom Post Types in WP core, and have been since 2.9.1 or 3.0 or something. I don't really know or care much because I will never use WP again for anything other than a simple single user blog. Even then, drupal still can scale to that level.

So here is what a regular post looks like in my xml:

		<item>
		<title>Foreign language learning for business success By: Frank Middleton</title>
		<link>http://thenovicesguide.com/language/foreign-language-learning-for-business-success-by-frank-middleton/</link>
		<pubDate>Thu, 02 Dec 2010 05:45:46 +0000</pubDate>
		<dc:creator><![CDATA[Theo]]></dc:creator>
		
		<category><![CDATA[Language]]></category>

		<category domain="category" nicename="language"><![CDATA[Language]]></category>

		<guid isPermaLink="false">http://thenovicesguide.com/?p=139</guid>
		<description></description>
		<content:encoded><![CDATA[If you understand a language then you will understand to a large extent  the culture that goes with it, and if you understand the culture you  will pick up on subtleties that you might otherwise miss. In any  negotiation or business relationship the more you understand about the  needs and wants of the other party the more likely you are to be able to  reach an advantageous outcome (for both sides).

...snipped...


Clever use of some words and phrases in languages other than English is  going  to improve your personal relationships with foreign clients, and  language software such as Linguata will help.



<strong>Author Bio</strong>

Frank Middleton is a freelance author.


]]></content:encoded>
		<excerpt:encoded><![CDATA[]]></excerpt:encoded>
		<wp:post_id>139</wp:post_id>
		<wp:post_date>2010-12-01 21:45:46</wp:post_date>
		<wp:post_date_gmt>2010-12-02 05:45:46</wp:post_date_gmt>
		<wp:comment_status>open</wp:comment_status>
		<wp:ping_status>open</wp:ping_status>
		<wp:post_name>foreign-language-learning-for-business-success-by-frank-middleton</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_lock</wp:meta_key>
		<wp:meta_value><![CDATA[1291268747]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>_edit_last</wp:meta_key>
		<wp:meta_value><![CDATA[1]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>robotsmeta</wp:meta_key>
		<wp:meta_value><![CDATA[index,follow]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>_wp_old_slug</wp:meta_key>
		<wp:meta_value><![CDATA[]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>better-related-</wp:meta_key>
		<wp:meta_value><![CDATA[a:5:{s:6:"offset";s:1:"0";s:5:"stime";s:13:"1297120977.34";s:7:"queries";s:1:"1";s:5:"etime";s:13:"1297120977.37";s:5:"ctime";s:10:"1297120977";}]]></wp:meta_value>
		</wp:postmeta>
							</item>

And here is a custom post type called Related Resources, which we use for linking to additional information on a topic:

		<item>
		<title>Bike.com Website-bicycles</title>
		<link>http://thenovicesguide.com/related-resources/bike-com-website-bicycles/</link>
		<pubDate>Wed, 16 Feb 2011 18:31:09 +0000</pubDate>
		<dc:creator><![CDATA[Related Resources]]></dc:creator>
		
		<category domain="tag"><![CDATA[bicycles]]></category>

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

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

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

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

		<category domain="tag" nicename="cycling-2"><![CDATA[cycling]]></category>

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

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

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

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

		<guid isPermaLink="false">http://thenovicesguide.com/?post_type=related-resources&#038;p=3737</guid>
		<description></description>
		<content:encoded><![CDATA[]]></content:encoded>
		<excerpt:encoded><![CDATA[]]></excerpt:encoded>
		<wp:post_id>3737</wp:post_id>
		<wp:post_date>2011-02-16 10:31:09</wp:post_date>
		<wp:post_date_gmt>2011-02-16 18:31:09</wp:post_date_gmt>
		<wp:comment_status>closed</wp:comment_status>
		<wp:ping_status>closed</wp:ping_status>
		<wp:post_name>bike-com-website-bicycles</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>related-resources</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[7]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>_edit_lock</wp:meta_key>
		<wp:meta_value><![CDATA[1297881071]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>tngreview</wp:meta_key>
		<wp:meta_value><![CDATA[Bike.com offers the Web&#039;s largest catalog of bicycles, parts and accessories plus all the gear and apparel cyclists love.]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>link</wp:meta_key>
		<wp:meta_value><![CDATA[http://www.jdoqocy.com/click-4266940-10790134]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>linked-image</wp:meta_key>
		<wp:meta_value><![CDATA[&lt;a href=&quot;http://www.jdoqocy.com/click-4266940-10790134&quot; target=&quot;_top&quot;&gt;

&lt;img src=&quot;http://www.tqlkg.com/image-4266940-10790134&quot; width=&quot;300&quot; height=&quot;250&quot; alt=&quot;Free shipping at Bike.com&quot; border=&quot;0&quot;/&gt;&lt;/a&gt;]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>image-from-website</wp:meta_key>
		<wp:meta_value><![CDATA[]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>copied-text-from-website</wp:meta_key>
		<wp:meta_value><![CDATA[More than 44 million Americans ride bikes. Bike.com believes this number will only grow as more people embrace cycling for commuting and transportation, to help the environment, for fitness and exercise, and just for the fun of it.]]></wp:meta_value>
		</wp:postmeta>
				<wp:postmeta>
		<wp:meta_key>testimonials</wp:meta_key>
		<wp:meta_value><![CDATA[]]></wp:meta_value>
		</wp:postmeta>
							</item>

Note, we do not use the field like a normal post, we use custom fields.

But I can't see why this module see all 1300 Related Resources in the green type preview screen, then doesn't import them?

lavamind’s picture

Category: bug » feature

This would be quite some work to support. Patches welcome.