內容簡介
替代的 CSV 進口外掛。簡單而強大,最適合資訊人員使用。
支援分類
支援標籤
支援自訂欄位
支援 Smart Custom Fields
支援 Custom Field Suite
支援 Advanced Custom Fields
支援自訂分類法
支援自訂文章類型
使用篩選器用於模擬測試匯入
使用篩選器在匯入數據到數據庫之前自定義 CSV 數據
使用動作鉤子更新文章數據後匯入到數據庫
您可以在 /wp-content/plugins/simple-csv-importer/sample 目錄中查看範例 CSV 文件。
可用的欄位名稱和值:
ID 或 post_id:(整數)文章 ID。
此值為可選項目。該文章 ID 已存在於您的博客中,進口程序將更新該文章數據。如果該 ID 不存在,進口程序將嘗試使用建議的 ID 創建新文章。
post_author:(登錄名稱或 ID)作者的用戶名稱或用戶 ID 編號。
post_date:(字符串)發布日期的時間。
post_content:(字符串)文章的全文。
post_title:(字符串)文章的標題。
post_excerpt:(字符串)文章的摘要。
post_status:(‘draft’ 或 ‘publish’ 或 ‘pending’ 或 ‘future’ 或 ‘private’ 或自訂已註冊的狀態)文章的狀態。「草稿」為預設值。
post_password:(字符串)保護文章的密碼。密碼限制為 20 個字符。
post_name:(字符串)文章的 slug。
post_parent:(整數)文章的父級 ID。用於頁面或階層式文章類型。
menu_order:(整數)
post_type:(‘post’ 或 ‘page’ 或任何其他文章類型名稱)(必填)文章類型的 slug,而非標籤。
post_thumbnail:(字符串)文章縮略圖的 URI 或路徑。
例如:http://example.com/example.jpg 或 /path/to/example.jpg
post_category:(字符串,逗號分隔)文章類別的 slug
post_tags:(字符串,逗號分隔)文章標籤名稱
tax_{taxonomy}:(字符串,逗號分隔)任何以 tax_ 為前綴的欄位都將用作自定義分類法。分類法必須已存在。條目是术語的名稱或slug。
{custom_field_key}:(字符串)用作自訂欄位的其他列標籤
cfs_{field_name}:(字符串)如果您想要將數據匯入由 Custom Field Suite 設定的自訂欄位,請將前綴 cfs_ 添加到列標籤名稱。
scf_{field_name}:(字符串)如果您要將數據匯入由 Smart Custom Fields 設定的自訂欄位中,請在列標籤名稱中添加前綴 scf_。
comment_status:(‘closed’ 或 ‘open’)預設值為選項 ‘default_comment_status’,或 ‘closed’。
注意:CSV 文件中的空欄位表示「保留它」,而非「刪除它」。
注意:要設定頁面的頁面模板,請使用自訂欄位鍵 _wp_page_template。
注意:如果提供了一個帖子狀態為「future」,您必須指定該帖子的發布日期,以便 WordPress 知道何時發佈帖子。
外掛標籤
開發者團隊
原文外掛簡介
Alternative CSV Importer plugin. Simple and powerful, best for geeks.
Category support
Tag support
Custom field support
Smart Custom Fields support
Custom Field Suite support
Advanced Custom Fields support
Custom Taxonomy support
Custom Post Type support
Filter hook for dry-run-testing
Filter hooks for customize csv data before importing to database
Action hook for update post data after importing to database
You can get example CSV files in /wp-content/plugins/simple-csv-importer/sample directory.
Available column names and values:
ID or post_id: (int) post id.
This 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.
post_author: (login or ID) The user name or user ID number of the author.
post_date: (string) The time of publish date.
post_content: (string) The full text of the post.
post_title: (string) The title of the post.
post_excerpt: (string) For all your post excerpt needs.
post_status: (‘draft’ or ‘publish’ or ‘pending’ or ‘future’ or ‘private’ or custom registered status) The status of the post. ‘draft’ is default.
post_password: (string) The password to protect the post. The password is limited to 20 characters.
post_name: (string) The slug of the post.
post_parent: (int) The post parent id. Used for page or hierarchical post type.
menu_order: (int)
post_type: (‘post’ or ‘page’ or any other post type name) (required) The post type slug, not labels.
post_thumbnail: (string) The uri or path of the post thumbnail.
E.g. http://example.com/example.jpg or /path/to/example.jpg
post_category: (string, comma separated) slug of post categories
post_tags: (string, comma separated) name of post tags
tax_{taxonomy}: (string, comma separated) Any field prefixed with tax_ will be used as a custom taxonomy. Taxonomy must already exist. Entries are names or slugs of terms.
{custom_field_key}: (string) Any other column labels used as custom field
cfs_{field_name}: (string) If you would like to import data to custom fields set by Custom Field Suite, please add prefix cfs_ to column header name.
scf_{field_name}: (string) If you would like to import data to custom fields set by Smart Custom Fields, please add prefix scf_ to column header name.
comment_status: (‘closed’ or ‘open’) Default is the option ‘default_comment_status’, or ‘closed’.
Note: Empty cells in the csv file means “keep it”, not “delete it”.
Note: To set the page template of a page, use custom field key of _wp_page_template.
Note: If providing a post_status of ‘future’ you must specify the post_date in order for WordPress to know when to publish your post.
Note: If the post_type value is attachment, you can use post_thumbnail field to define media URL or path.
Advanced Custom Fields plugin integrate
If advanced custom field key is exists, importer will trying to use update_field function instead of built-in add_post_meta function.
How to find advanced custom field key: Finding the field key
