{"id":50116,"date":"2016-08-06T21:02:14","date_gmt":"2016-08-06T21:02:14","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/large-csv-import-handler\/"},"modified":"2016-08-05T11:46:51","modified_gmt":"2016-08-05T11:46:51","slug":"large-csv-import-handler","status":"publish","type":"plugin","link":"https:\/\/es-ar.wordpress.org\/plugins\/large-csv-import-handler\/","author":15047141,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.9","stable_tag":"0.9","tested":"4.6.30","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Large CSV Import Handler","header_author":"Oleg Kosolapov","header_description":"","assets_banners_color":"","last_updated":"2016-08-05 11:46:51","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=65AE4A3BTR6FE","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":10,"downloads":1814,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1469323","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1469323","resolution":"256x256","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1469323","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1469323","resolution":"2","location":"assets"}},"screenshots":{"1":"Admin import page","2":"Admin settings page"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[567,3524,87,166],"plugin_category":[59],"plugin_contributors":[87766],"plugin_business_model":[],"class_list":["post-50116","plugin","type-plugin","status-publish","hentry","plugin_tags-csv","plugin_tags-data","plugin_tags-import","plugin_tags-posts","plugin_category-utilities-and-tools","plugin_contributors-firimar","plugin_committers-firimar"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/large-csv-import-handler\/assets\/icon-128x128.png?rev=1469323","icon_2x":"https:\/\/ps.w.org\/large-csv-import-handler\/assets\/icon-256x256.png?rev=1469323","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/large-csv-import-handler\/assets\/screenshot-1.png?rev=1469323","caption":"Admin import page"},{"src":"https:\/\/ps.w.org\/large-csv-import-handler\/assets\/screenshot-2.png?rev=1469323","caption":"Admin settings page"}],"raw_content":"<!--section=description-->\n<p>This simple plugin allows you to import any type of data from large CSV files into your wordpress installation.<\/p>\n\n<p>Plugin reads CSV file and performs import of its records one by one through AJAX requests, so there are no server timeout issues.<\/p>\n\n<p>You only need to provide PHP function to perform import of CSV field values into post or taxonomy term or whatever you need.<\/p>\n\n<p>Usage example:<\/p>\n\n<p>For example, assume we want to import posts from such CSV file:\n    title,text,brand,image\n    \"Check this\",\"Samsung content\",Samsung,\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/2\/24\/Samsung_Logo.svg\/2000px-Samsung_Logo.svg.png\"\n    \"Some news\",\"News<br \/>Here are some news\",Philips,\"http:\/\/www.underconsideration.com\/brandnew\/archives\/philips_2013_logo_detail.png\"<\/p>\n\n<p>Here we have post title, post content, custom field Brand and thumbnail image.<\/p>\n\n<p>We can use this code in theme's functions.php file to implement import function:<\/p>\n\n<pre><code>add_action('lcih_import_csv_row', 'lcih_import_csv_row');\nfunction lcih_import_csv_row($row)\n{\n $post_data = array(\n     'post_type' =&gt; 'post',\n     'post_status' =&gt; 'publish',\n     'post_title' =&gt; $row['title'],\n     'post_content' =&gt; $row['text']\n );\n $post_id = wp_insert_post($post_data);\n if (!$post_id)\n {\n     echo \"Error inserting post.\";\n     return;\n }\n\n update_post_meta($post_id, 'brand', $row['brand']);\n\n if ($row['image'])\n     LargeCSVImportHandlerPlugin::download_post_thumbnail($post_id, $row['image']);\n\n echo \"Created post \".$post_id;\n}\n<\/code><\/pre>\n\n<p>After that we can go to plugin admin page, select CSV file to upload and click \"Start import\" button. Import process will begin.<\/p>\n\n<!--section=installation-->\n<p>Use the automatic installer from within the WordPress admin, or:<\/p>\n\n<ol>\n<li>Download the .zip file by clicking on the Download button on the right<\/li>\n<li>Unzip the file<\/li>\n<li>Upload the files to your plugins directory<\/li>\n<li>Go to the Plugins page from within the WordPress administration<\/li>\n<li>Click Activate for Large CSV Import Handler<\/li>\n<li>After activation a new Large CSV Import Handler menu item will appear in admin area.<\/li>\n<li>Visit the Settings page to adjust values as you need.<\/li>\n<\/ol>\n\n<p>You can now start using the plugin.<\/p>","raw_excerpt":"Provides ability to import any type of data from large CSV files into Wordpress","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/50116","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=50116"}],"author":[{"embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/firimar"}],"wp:attachment":[{"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=50116"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=50116"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=50116"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=50116"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=50116"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-ar.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=50116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}