[WordPress] 外掛分享: CSV Mass Importer

WordPress 外掛 CSV Mass Importer 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「CSV Mass Importer」是 2016-05-21 上架。
  • 目前有 20 個安裝啟用數。
  • 上一次更新是 2016-05-22,距離現在已有 3269 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.2 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

aleapp |

外掛標籤

csv | excel | import | update | csv mass importer |

內容簡介

CSV 大量匯入器是一個完美的解決方案,可以透過 CSV 檔案大量匯入和匯出文章數據,支援內建的 WordPress 類型和自訂文章類型。

CSV 大量匯入器可以匯入附件,並與 WPML 相容。

資料匯出
在按下匯出按鈕之前,您可能需要在匯出部分中調整一些設置。

以下是您可以選擇的選項:

- 文章類型:您可以自由選擇預設 WordPress 文章類型或任何已註冊的自訂文章類型。
- 載入欄位:使用 "載入欄位" 按鈕查找與您之前選擇的文章類型相關聯的欄位,包括實體欄位、元數據和分類法。如果您沒有調用 "載入欄位" 操作或未勾選任何載入的欄位,CSV 大量匯入器將假定您要匯出與文章類型相關聯的所有數據。
- 日期:這將允許您在特定的時間段內匯出文章。留空以匯出所有日期。
- 限制:指定您要匯出的文章數量,或留空以匯出所有文章。
- 目的地:在這裡,您可以選擇對匯出的文件進行什麼操作,下載它,或將它留在服務器上的 /wp-content/cmi-data/data.csv。

請注意,CSV 大量匯入器不會匯出文章的媒體附件,但它可以匯入它們。

資料匯入和更新
當匯入數據時,請確保CSV文件結構良好。匯出一些文章作為模板始終是個好主意。以下是需要牢記的關鍵點:

- CSV 文件標頭(欄位名稱)
通常情況下,CSV 文件中的第一行代表欄位名稱。有三種數據類型:實體數據、元數據和分類法數據。要將元數據和分類法數據與實體數據區分開來,分別將 :meta 或 :taxonomy 添加到欄位名稱後。由於此版本的外掛沒有欄位映射功能,因此請確保在CSV標頭中提供正確的系統欄位名稱。

- 匯入新文章時的必填欄位和默認值
[ID](必填):如果我們創建新文章,每個文章項目的 ID 欄位必須包含 "new" 關鍵字。如果 ID 是一個整數,CMI 假定這是一個更新。
[post_type](可選):如果省略或為空,CMI 將假定您正在匯入 "post" 類型。
[post_content](可選):如果省略或為空,将作为虚拟值插入 "” ”"。

- 更新文章時的必填欄位
[ID](必填):當更新文章時,只需要 ID 欄位。該欄位需要一個整數。當然,将其单独使用沒有任何意义,請在您的 CSV 文件中加入您要更新的任何實體、元或分類欄位。

- 值
值可以是簡單或多個。多個值始終涉及到元數據或分類,並會跨越多行擴展,直到下一個數據行開始。

- 附件
當匯入帶有附件的文章時,您必須以不同的方式結構化匯入套件。為了匯入帶有附件的文章,請將媒體文件放在 /images 文件夾中。隨後,在 CSV 文件中添加 "attachments" 列,並為每個文章項目分別填寫媒體文件名(不帶路徑,僅文件名)。您可以輸入多個值,每個儲存格一個。

指定縮略圖很簡單。要這樣做,請在您的 CSV 文件中添加一個 "thumbnail" 列,並為每個文章項目分別填寫文件名。附件文件必須…(此段資訊不完整,應為還有后續敘述)

原文外掛簡介

CSV Mass Importer is a perfect solution for those looking to import and export post data in a massive manner through CSV file. It supports built-in wordpress types and custom post types.
CSV Mass Importer can import attachments and is compatible with WPML.
EXPORTING DATA
Before you hit the Export button you may want to adjust some settings in the Export section.
Here are the options you have:
— Post type
You are free to choose between defaut wordpress post types or any custom post type registered.
— Load fields
Use “Load fields” button to discover fields associated with the post type you selected previously,
it includes entity fields, metas and taxonomies. If you don’t invoke “Load fields” action or don´t check any of the loaded
fields CSV Mass Importer will assume you are trying to export all the data associated with the post type.
— Dates
This will allow you to export posts within a specific time period. Leave empty to export all dates.
— Limit
Specify the number of posts you want to export or leave empty to export them all.
— Destination
Here you select what to do with the exported file, download it or leave it on the server at /wp-content/cmi-data/data.csv.
Note that CSV Mass Importer does not export post’s media attachments, but it does import them, see below.
IMPORTING AND UPDATING DATA
When importing data be sure to have a well structured data file. Its always a good idea to export a number of posts that will serve you as a template. These are the key points to keep in mind:
— CSV file header (field names)
As usual, the first row in the CSV file represents field names.
There are three data types: entity data, meta data and taxonomy data.
To distinguish meta data and taxonomy data from the entity data append :meta or :taxonomy to the field name respectively.
This plugin version does not include fields mapping facility, therefore be sure to provide correct field system names in your CSV header.
— Required fields and default values when importing new posts
[ID] (required). In case we are acreating new posts the ID field must contain “new” keyword for each post entry.
If ID is an integer, CMI assumes its an update.
[post_type] (optional). If ommited or empty CMI will assume you are importing “post” type.
[post_content] (optional). If ommited or empty ” ” will be inserted as a dummy value.
— Required fields when updating posts
[ID] (required). ID is the only required field when updating posts. This field expects an integer. Of course it makes no sense
to have it alone, add whatever entity, meta or taxonomy field you want to update to your CSV file.
— Values
Values may be simple or multiple. Multiple values always refer to metas or taxonomies and will expand across multiple rows until
the next data row begins.
— Attachments
When importing posts with attachments you have to structure the import package differently.
In order to import posts with attachments place media files in /images folder. Then, add “attachments” column in the CSV file and
fill it with media file names (no paths, just file names) for each post entry respectively. You can enter multiple values, one per cell.
Assigning thumbnail is simple. To do this, add a “thumbnail” column to your CSV file and fill it with file name for
each post entry respectively. The attachment file must be one of the files you entered in the “attachments” column.
Requirements to the import package when importing data with attachments.
When importing posts with attachments it is important how you name the CSV file and where you place media files.
The requirement is to name the CSV file as data.csv and place the attachment files in /images folder:
/data.csv
/images/myimage1.png
/images/myimage2.png
/images/myimage3.png
/images/myimage4.png
/images/myimage5.png
For direct upload method, compress data package as a zip archive.
If you prefer to upload files by FTP, place them in /wp-content/uploads/cmi-data folder of your wordpress installation.
— Multilingual content with WPML
CSV Mass Importer can import post translations at the same time you import original post data in original language.
To accomplish this create “lang” column and set language code for each post entry as a two-digit code (e.g. en, fr, de, es …).
Its important that translated posts go after the original post.
— Post taxonomies
CSV Mass Importer does not create taxonomy terms. Make sure taxonomy terms exist prior to the data import.
— Deleting metas
Meta values and taxonomies will be deleted if value cell is empty. To prevent this “Safe mode” is enbaled by default.
Troubleshooting

Export button freezes. This problem is normally due to server side errors such as PHP memory limit being too low.
Increase memory_limit in your server and try again.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「CSV Mass Importer」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


最新版本

延伸相關外掛(你可能也想知道)

  • TablePress – Tables in WordPress made easy 》TablePress 是最受歡迎和評分最高的 WordPress 表格外掛程式。它允許您輕鬆地在您的網站上創建和管理美麗的表格。您可以使用區塊編輯器在文章、頁面或其他網...。
  • GravityExport Lite for Gravity Forms 》, GravityExport 是從 Gravity Forms 匯出資料的最佳、無需麻煩的解決方案。, GravityExport 提供強大的新功能!可將匯出儲存至 FTP 和 Dropbox、匯出為 PDF...。
  • Export User Data 》一個可以匯出 WordPress 使用者資料和元數據的外掛。, 包括匯出使用者身分、註冊日期範圍、使用者元選項和兩種匯出格式的選項。, 此外掛程式設計用來匯出儲存...。
  • Product Export for WooCommerce to CSV, Excel, XML, and the Google Merchant Center 》使用 WooCommerce 產品匯出外掛程式 WP All Export Add-On,可以匯出產品資訊為 CSV、Excel 或 XML 檔案。WP All Export 提供了選擇匯出的產品欄位,按需要重...。
  • ULTIMATE TABLES 》這個外掛讓你可以輕鬆地在 WordPress 管理頁面中創建和管理表格,你可以在頁面、文章、帖子或「ultimate tables widget」中插入表格。, 演示和外掛頁面, 它的...。
  • Simple CSV/XLS Exporter 》本外掛可以讓您透過簡單的連結/按鈕,從後端或前端匯出文章為 CSV 或 XLS 檔案。, 請確保您使用 PHP 7.3 或更新版本,如果您看到任何錯誤,舊版本將不再受支...。
  • CSV Importer 》此外掛可以將 CSV(逗號分隔值)檔案中的文章匯入 WordPress 網誌。當您要從 Excel 文件或類似文件匯入一堆文章時,這是非常有用的工具 - 只需將文件匯出成 C...。
  • WP CSV 》大多數 WordPress 功能都得到完整支援:, , 超過5萬行可以匯入/匯出(唯一的限制是您的伺服器), 文章、頁面和自訂文章類型, 標籤、分類和自訂稅目 , 自訂欄...。
  • WP CSV to Database – Insert CSV file content into WordPress database 》WP CSV to Database 外掛能夠讓你將 CSV 檔案內容插入 WordPress 資料庫,你可以選擇性地插入資料到特定的資料庫表格中。, 此外,你也能夠使用這個外掛匯出任...。
  • Docxpresso 》如果您習慣使用辦公室軟件,例如 MS Office、Libre Office 或 Open Office 的文字處理軟件或試算表,Docxpresso 是您一直在尋找的 WordPress 外掛!, , 此外...。
  • Import Spreadsheets from Microsoft Excel 》「從 Microsoft Excel 匯入試算表」是一款 WordPress 的外掛,它可以讓您將 Microsoft Excel 中的即時計算試算表匯入到 WordPress 的博客或網站中。該外掛是...。
  • Spreadsheet Price Changer for WooCommerce and WP E-commerce – Light 》這是一個針對 WooCommerce / WP E-commerce 產品價格和促銷價格的快速輸入試算表編輯器。, 這是著名的產品管理員/批量產品編輯器的免費簡化版本,僅允許更改...。
  • Easy Document Embedder – Embed Word, excel, Powerpoint, Pdf file and more.. 》透過在網站上嵌入文件是我們經常需要進行的常見事情。透過使用此外掛,您可以嵌入所有常見文件,如PDF、Word、XLS、PPT等等,這樣可以節省您的時間,並使您的...。
  • Spreadsheet Paste Block 》您可以直接從試算表 (例如 Google Sheets 或 LibreOffice Calc) 複製儲存格並貼到這個區塊。儲存格將會被正確地顯示和格式化。。
  • Export to Excel 》如果您能夠將您的部落格或網站匯出到 MS Excel,這將會非常方便,現在您可以使用 Export 2 Excel 來轉換您的數據成為本機 MS Excel 格式,並體驗真正的可攜性...。

文章
Filter
Apply Filters
Mastodon