I am also having the same issue. I’d like to import into a custom post type, but I don’t currently see that as an option.
I’ll add custom post types to my list of feature requests.
Plus 1. Seems like a natural progression of the plugin.
Another vote from me π
Support for custom post types has been added in 0.3.2. Grab it while it’s hot! π
Thanks for your votes. I would also be very interested to read more usage reports to help me think about new features and ways to make the plugin better.
Suggestion: import them as regular pages and then convert them to the intended Custom Post Type using another plugin.
M
(@infolegal)
dvkob, this new custom post types is perfect for what I needed in my CMS site. Have you thought about adding something like adding a cron functionality to import daily content? Do you have any suggestions on how to do this with the current version of the plugin?
I actually had to hack this plugin in order to get custom post types to work. I’m running 0.3.3.
ellie.roepken, could you share how you hacked to get this to work?
I changed the cells in the column “csv_post_type” in sample.csv to my type (“towns”) and imported. Those items were not brought into that post type.
I’m using GD CPT Tools to create the custom post types, and everything else works fine.
Looking for a fix or an alternative.
I changed line 228 of csv_importer.php:
post_type_exists($type)) || in_array($type, array('post', 'page'));
Where it says in_array($type, array('post', 'page'))
, add your custom types to that second parameter.
I.e.: in_array($type, array('post', 'page', 'book', 'article'))
Thanks for the hack and your note in the related thread.
http://wordpress.org/support/topic/plugin-csv-importer-importing-into-custom-post-types-not-preserving-taxonomies
However, I did find a premium plugin, TurboCSV, that supports custom post types, custom taxonomies, and custom fields. I had one issue, but the developer responded quickly.
http://wphostreviews.com/turbocsv
That said, I spent quite a few hours seeking a complete workflow for custom post types and taxonomies — from entry to management to queries (missing in core) to presentation — and have decided to wait until the support is more mature.