| 开发者 |
MillerMediaNow
hissy |
|---|---|
| 更新时间 | 2026年11月21日 11:23 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/wp-content/plugins/miller-media-csv-importer directory, or install the plugin through the WordPress Plugins screen directly.Yes. Either:
ID or post_id column that matches an existing post, orpost_title matches an existing post of the same post_type updates that post instead of creating a new one.Yes. Set post_type to the slug of any post type already registered on your site (by WordPress, your theme, or another plugin).
Yes. Use a column named tax_{taxonomy}, where {taxonomy} is the taxonomy's registered slug (not its label). The taxonomy must already exist. For example:
csv file
"post_title","tax_actors" "Captain Phillips","Tom Hanks, Barkhad Abdi, Barkhad Abdirahman"
imported post data
Post Title: Captain Phillips. Custom taxonomy "Actors": Tom Hanks, Barkhad Abdi, Barkhad Abdirahman.
post_date and post_date_gmt accept anything PHP's strtotime() understands (e.g. 2024-01-31, 2024/01/31 10:00). If you set post_status to future, you must provide post_date so WordPress knows when to publish the post.
Save/export it as UTF-8 CSV and quote every text cell. Excel's "CSV UTF-8" export option works; the plain "CSV" export option often does not use UTF-8 and can corrupt non-ASCII characters.
The upload is limited by your server's PHP upload settings (upload_max_filesize, post_max_size). There's no hard row limit, but very large files can take a long time to process since each row triggers a full wp_insert_post() (and any associated term/meta/thumbnail calls); consider splitting huge exports into smaller files.
Yes, with a small companion plugin using the really_simple_csv_importer_save_meta filter below to convert the CSV string into an array before it's saved.
See the developer example under "How to customize import post data" below, or the add-on development example.
This is a maintained fork that provides PHP 8.1+ and WordPress 7.1 compatibility, hardened sanitization/escaping, a unique importer ID (so it no longer collides with the original plugin's "csv" importer ID if both are installed), and active maintenance. The original plugin was last updated in 2017. This fork keeps backward compatibility with all filter/action hooks from the original (they intentionally keep their original really_simple_csv_importer_* names) so existing customizations keep working.
You can get the example CSV files in the /wp-content/plugins/miller-media-csv-importer/sample directory.
admin_init instead of plugins_loaded so WordPress no longer logs a "textdomain loaded too early" notice on every admin request.$escape parameter to fgetcsv() explicitly to remove a PHP 8.4+ deprecation notice.sample.ods file (the file is no longer shipped).miller-media-csv-importer (shown as "Miller Media CSV Importer" under Tools > Import) instead of the generic csv ID, which could silently collide with other CSV importer plugins, including the original Really Simple CSV Importer.auto.js script is no longer needed and was removed.get_page_by_title() with WP_Querymiller-media-csv-importerMMCSV_PLUGIN_VERSION