{"id":150470,"date":"2021-11-27T06:08:52","date_gmt":"2021-11-27T06:08:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/simple-csv-importer\/"},"modified":"2025-02-08T15:29:05","modified_gmt":"2025-02-08T15:29:05","slug":"simple-csv-importer","status":"publish","type":"plugin","link":"https:\/\/ca-valencia.wordpress.org\/plugins\/simple-csv-importer\/","author":16113804,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"6.7.5","requires":"5.4","requires_php":"","requires_plugins":null,"header_name":"Simple CSV importer","header_author":"Apsara Aruna","header_description":"This is a short description of what the plugin does. It's displayed in the WordPress admin area.","assets_banners_color":"","last_updated":"2025-02-08 15:29:05","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/profiles.wordpress.org\/apsaraaruna\/","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/simple-csv-importer","header_author_uri":"https:\/\/profiles.wordpress.org\/apsaraaruna\/","rating":0,"author_block_rating":0,"active_installs":70,"downloads":2176,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"apsaraaruna","date":"2025-02-08 15:29:05"}},"upgrade_notice":{"1.0.0":"<p>Almost not updating plugin and making with suitable for nowaday.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2211,16902,567,12260,6606],"plugin_category":[59],"plugin_contributors":[156211],"plugin_business_model":[],"class_list":["post-150470","plugin","type-plugin","status-publish","hentry","plugin_tags-acf","plugin_tags-cfs","plugin_tags-csv","plugin_tags-custom-posts","plugin_tags-importer","plugin_category-utilities-and-tools","plugin_contributors-apsaraaruna","plugin_committers-apsaraaruna"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/simple-csv-importer.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Alternative CSV Importer plugin. Simple and powerful, best for geeks.<\/p>\n\n<ul>\n<li>Category support<\/li>\n<li>Tag support<\/li>\n<li>Custom field support<\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/smart-custom-fields\/\">Smart Custom Fields<\/a> support<\/li>\n<li><a href=\"http:\/\/customfieldsuite.com\/\">Custom Field Suite<\/a> support<\/li>\n<li><a href=\"http:\/\/www.advancedcustomfields.com\/\">Advanced Custom Fields<\/a> support<\/li>\n<li>Custom Taxonomy support<\/li>\n<li>Custom Post Type support<\/li>\n<li>Filter hook for dry-run-testing<\/li>\n<li>Filter hooks for customize csv data before importing to database<\/li>\n<li>Action hook for update post data after importing to database<\/li>\n<\/ul>\n\n<p>You can get example CSV files in <code>\/wp-content\/plugins\/simple-csv-importer\/sample<\/code> directory.<\/p>\n\n<h4>Available column names and values:<\/h4>\n\n<ul>\n<li><code>ID<\/code> or <code>post_id<\/code>: (int) post id.<br \/>\nThis value is not required. The post ID is already exists in your blog, importer will update that post data. If the ID is not exists, importer will trying to create a new post with suggested ID.<\/li>\n<li><code>post_author<\/code>: (login or ID) The user name or user ID number of the author.<\/li>\n<li><code>post_date<\/code>: (string) The time of publish date.<\/li>\n<li><code>post_content<\/code>: (string) The full text of the post.<\/li>\n<li><code>post_title<\/code>: (string) The title of the post.<\/li>\n<li><code>post_excerpt<\/code>: (string) For all your post excerpt needs.<\/li>\n<li><code>post_status<\/code>: ('draft' or 'publish' or 'pending' or 'future' or 'private' or custom registered status) The status of the post. 'draft' is default.<\/li>\n<li><code>post_password<\/code>: (string) The password to protect the post. The password is limited to 20 characters.<\/li>\n<li><code>post_name<\/code>: (string) The slug of the post.<\/li>\n<li><code>post_parent<\/code>: (int) The post parent id. Used for page or hierarchical post type.<\/li>\n<li><code>menu_order<\/code>: (int)<\/li>\n<li><code>post_type<\/code>: ('post' or 'page' or any other post type name) <em>(required)<\/em> The post type slug, not labels.<\/li>\n<li><code>post_thumbnail<\/code>: (string) The uri or path of the post thumbnail.<br \/>\nE.g. http:\/\/example.com\/example.jpg or \/path\/to\/example.jpg<\/li>\n<li><code>post_category<\/code>: (string, comma separated) slug of post categories<\/li>\n<li><code>post_tags<\/code>: (string, comma separated) name of post tags<\/li>\n<li><code>tax_{taxonomy}<\/code>: (string, comma separated) Any field prefixed with <code>tax_<\/code> will be used as a custom taxonomy. Taxonomy must already exist. Entries are names or slugs of terms.<\/li>\n<li><code>{custom_field_key}<\/code>: (string) Any other column labels used as custom field<\/li>\n<li><code>cfs_{field_name}<\/code>: (string) If you would like to import data to custom fields set by Custom Field Suite, please add prefix <code>cfs_<\/code> to column header name.<\/li>\n<li><code>scf_{field_name}<\/code>: (string) If you would like to import data to custom fields set by Smart Custom Fields, please add prefix <code>scf_<\/code> to column header name.<\/li>\n<li><code>comment_status<\/code>: ('closed' or 'open') Default is the option 'default_comment_status', or 'closed'.<\/li>\n<\/ul>\n\n<p>Note: Empty cells in the csv file means \"keep it\", not \"delete it\".<br \/>\nNote: To set the page template of a page, use custom field key of <code>_wp_page_template<\/code>.<br \/>\nNote: If providing a post_status of 'future' you must specify the post_date in order for WordPress to know when to publish your post.\nNote: If the post_type value is <code>attachment<\/code>, you can use <code>post_thumbnail<\/code> field to define media URL or path.<\/p>\n\n<h4>Advanced Custom Fields plugin integrate<\/h4>\n\n<p>If advanced custom field key is exists, importer will trying to use <a href=\"http:\/\/www.advancedcustomfields.com\/resources\/functions\/update_field\/\">update_field<\/a> function instead of built-in add_post_meta function.<br \/>\nHow to find advanced custom field key: <a href=\"http:\/\/www.advancedcustomfields.com\/resources\/functions\/update_field\/#finding-the%20field%20key\">Finding the field key<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload All files to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Go to the Import page under Tools menu.<\/li>\n<li>Click CSV link, read the notification, then just upload and import.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='should%20i%20fill%20all%20columns%20of%20post%20data%3F'><h3>Should I fill all columns of post data?<\/h3><\/dt>\n<dd><p>No. Only columns which you want to update.<\/p><\/dd>\n<dt id='can%20i%20update%20existing%20post%20data%3F'><h3>Can I update existing post data?<\/h3><\/dt>\n<dd><p>Yes. Please use ID field to specify the existing post.<\/p><\/dd>\n<dt id='can%20i%20insert%20post%20with%20specific%20post%20id%3F'><h3>Can I insert post with specific post id?<\/h3><\/dt>\n<dd><p>Yes. Please use ID field to specify the new post ID.<\/p><\/dd>\n<dt id='can%20i%20import%20custom%20field%2Fcustom%20taxonomy%20of%20the%20post%3F'><h3>Can I import custom field\/custom taxonomy of the post?<\/h3><\/dt>\n<dd><p>Yes. You can use column names same as wp_post table, but if the column name does not match, it creates a custom field (post meta) data. Importing custom taxonomy is a bit more complicated, \"tax_{taxonomy}\" means, \"tax_\" is prefix, and {taxonomy} is name of custom taxonomy (not labels).<\/p>\n\n<p>Here is an example.<\/p>\n\n<p><strong>csv file<\/strong><br \/>\n\"post_title\",\"singer\",\"genre\",\"released_date\"\n\"Shape of You\",\"Ed Sheeran\",\"Pop\", \"06-01-2017\"<\/p>\n\n<p><strong>imported post data<\/strong><br \/>\nPost Title: Shape of You<br \/>\nCustom field \"singer\": Ed Sheeran<br \/>\nCustom field \"genre\": Pop<br \/>\nCustom taxonomy \"released_date\": 06-01-2017<\/p><\/dd>\n<dt id='why%20should%20i%20quote%20text%20cells%20when%20i%20save%20csv%20file%3F'><h3>Why should I quote text cells when I save csv file?<\/h3><\/dt>\n<dd><p>Because PHP cannot read multibyte text cells in some cases.<\/p>\n\n<blockquote>\n  <p>Locale setting is taken into account by this function. If LANG is e.g. en_US.UTF-8, files in one-byte encoding are read wrong by this function.<\/p>\n<\/blockquote><\/dd>\n<dt id='can%20i%20insert%20multiple%20values%20to%20cfs%20or%20acf%20fields%20like%20select%20or%20checkbox%3F'><h3>Can I insert multiple values to CFS or ACF fields like Select or Checkbox?<\/h3><\/dt>\n<dd><p>Yes. Please create additional plugin and use <code>simple_csv_importer_save_meta<\/code> filter to make array data.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Fresh copy<\/li>\n<\/ul>","raw_excerpt":"Alternative CSV Importer plugin. Simple and powerful, best for geeks.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/150470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=150470"}],"author":[{"embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/apsaraaruna"}],"wp:attachment":[{"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=150470"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=150470"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=150470"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=150470"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=150470"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca-valencia.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=150470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}