Takuro Hishikawa
Forum Replies Created
-
Forum: Plugins
In reply to: [Really Simple CSV Importer] Map custom post meta to plugin* Not yet tested
<?php /* Plugin Name: Map custom post meta to plugin Author: Takuro Hishikawa Version: 0.1 Author URI: http://notnil-creative.com/ */ add_filter('really_simple_csv_importer_class', function(){ return "CustomImporter"; }); class CustomImporter { public function save_post($post,$meta,$terms,$thumbnail,$is_update) { $itemName = $meta['item-name']; unset($meta['item-name']); $post['post_title'] = $itemName; $meta['_vendor_item-name'] = $itemName; $importer = new RS_CSV_Importer(); return $importer->save_post($post,$meta,$terms,$thumbnail,$is_update); } }Forum: Plugins
In reply to: [Really Simple CSV Importer] Map custom post meta to pluginPlease use
really_simple_csv_importer_save_postfilter instead. read the docsForum: Plugins
In reply to: [Really Simple CSV Importer] Custom Post Type?1. Please do not use line break in first row. You also can not use line break to custom field key.
2. Please quote all text columns. If you are using MS Excel, I recommend to switch to LibreOffice.
Forum: Plugins
In reply to: [Really Simple CSV Importer] Custom Post Type?you can use pastebin or similar services
Forum: Plugins
In reply to: [Really Simple CSV Importer] Custom Post Type?I can’t find why. Could you share your csv?
Forum: Plugins
In reply to: [Really Simple CSV Importer] Custom Post Type?No. With this example in Codex, the post type handle is ‘book’, not ‘Books’.
https://codex.wordpress.org/Function_Reference/register_post_type#ExampleForum: Plugins
In reply to: [Really Simple CSV Importer] post_thumbnail – How it works?How “ignored” ? Could you share your csv again?
Forum: Plugins
In reply to: [Really Simple CSV Importer] post_thumbnail – How it works?Use full path like http://www.example.com/path/to/your_image.jpg
Forum: Plugins
In reply to: [Really Simple CSV Importer] Advance Costum Field – ImageThe gist is just an example. Please read comments in the code and fix to your custom fields. thanks
Forum: Plugins
In reply to: [Really Simple CSV Importer] Advance Costum Field – Image1. FYI, there is an example to import images.
https://gist.github.com/hissy/0973a6a9977129a6ebd02. You can check the charset of your csv file. It must be UTF-8. If you are using MS Excel, please do not use it. I recommend to use LibreOffice. thanks
Forum: Plugins
In reply to: [Really Simple CSV Importer] Map custom post meta to pluginYou can convert any column names with filter hooks. There is an example code on my blog post:
http://notnil-creative.com/blog/archives/2913Well, it seems a memory issue…
Could you try to post manually in your dashboard? You seems to try to import some multibyte characters, but some mysql settings do not allow to do that. I saw some similar posts in Japanese forum. Thanks
Forum: Plugins
In reply to: [Really Simple CSV Importer] Importing post_date and post_date_gmtThanks for your report. I’ll fix this on next release.
https://github.com/hissy/rs-csv-importer/issues/35Forum: Plugins
In reply to: [Really Simple CSV Importer] Large CSV file upload timeoutPlease request support to your host like this problem. this support forum is only for csv importing issue. thanks