[wordpress插件] CSV Mass ImporterCSV批量导入器

wordpress 插件 文章 2020-04-06 09:40 1060 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

CSV Mass Importer is a perfect solution for those looking to import and export post data in a massive manner through CSV file.

CSV Mass Importer是寻求通过CSV文件大量导入和导出帖子数据的用户的理想解决方案。

It supports built-in wordpress types and custom post types.

它支持内置的wordpress类型和自定义帖子类型。

CSV Mass Importer can import attachments and is compatible with WPML.

CSV Mass Importer可以导入附件,并且与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.

您可以自由选择默认的wordpress帖子类型或已注册的任何自定义帖子类型。

— 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.

CSV Mass Importer字段将假定您正在尝试导出与帖子类型关联的所有数据。

— 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.

在此处选择要处理的文件,下载文件或将其保留在服务器上的/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.

请注意,CSV Mass Importer不会导出帖子的媒体附件,但会导入它们,请参见下文。

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)

-CSV文件标题(字段名称)

As usual, the first row in the CSV file represents field names.

通常,CSV文件的第一行代表字段名称。

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.

要将元数据和分类数据与实体数据区分开,请分别在字段名称后附加:meta或:taxonomy。

This plugin version does not include fields mapping facility, therefore be sure to provide correct field system names in your CSV header.

此插件版本不包含字段映射工具,因此请确保在CSV标头中提供正确的字段系统名称。

— Required fields and default values when importing new posts

-导入新帖子时的必填字段和默认值

[ID] (required).

[ID](必填)。

In case we are acreating new posts the ID field must contain “new” keyword for each post entry.

如果我们要创建新帖子,则ID字段必须为每个帖子条目包含“ new”关键字。

If ID is an integer, CMI assumes its an update.

如果ID为整数,则CMI会假定其为更新。

[post_type] (optional).

[post_type](可选)。

If ommited or empty CMI will assume you are importing “post” type.

如果忽略或为空,则CMI将假定您正在导入“发布”类型。

[post_content] (optional).

[post_content](可选)。

If ommited or empty ” ” will be inserted as a dummy value.

如果省略或为空,则将“”作为虚拟值插入。

— Required fields when updating posts

-更新帖子时必填字段

[ID] (required).

[ID](必填)。

ID is the only required field when updating posts.

更新帖子时,ID是唯一必填字段。

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.

要单独使用,请将您要更新的任何实体,元或分类字段添加到CSV文件中。

— Values

—值

Values may be simple or multiple.

值可以是简单的或多个。

Multiple values always refer to metas or taxonomies and will expand across multiple rows until

多个值始终引用meta或分类法,并且会在多行中扩展,直到

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.

为了导入带有附件的帖子,请将媒体文件放置在/ images文件夹中。

Then, add “attachments” column in the CSV file and

然后,在CSV文件中添加“附件”列,并

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

为此,请在您的CSV文件中添加一个“缩略图”列,并用
的文件名填充

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.

导入带有附件的帖子时,重要的是如何命名CSV文件以及放置媒体文件的位置。

The requirement is to name the CSV file as data.csv and place the attachment files in /images folder:

要求是将CSV文件命名为data.csv,并将附件文件放在/ images文件夹中:

/data.csv

/data.csv

/images/myimage1.png

/images/myimage1.png

/images/myimage2.png

/images/myimage2.png

/images/myimage3.png

/images/myimage3.png

/images/myimage4.png

/images/myimage4.png

/images/myimage5.png

/images/myimage5.png

For direct upload method, compress data package as a zip archive.

对于直接上传方法,将数据包压缩为zip存档。

If you prefer to upload files by FTP, place them in /wp-content/uploads/cmi-data folder of your wordpress installation.

如果您希望通过FTP上传文件,请将其放在wordpress安装的/ wp-content / uploads / cmi-data文件夹中。

— Multilingual content with WPML

—使用WPML的多语言内容

CSV Mass Importer can import post translations at the same time you import original post data in original language.

CSV Mass Importer可以在以原始语言导入原始帖子数据的同时导入帖子翻译。

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 …).

为此,请创建“ lang”列,并将每个帖子条目的语言代码设置为两位数代码(例如en,fr,de,es…)。

Its important that translated posts go after the original post.

重要的是,翻译后的帖子必须紧跟原始帖子。

— Post taxonomies

—分类法

CSV Mass Importer does not create taxonomy terms.

CSV Mass Importer不会创建分类术语。

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.

      此问题通常是由于服务器端错误(例如PHP内存限制太低)引起的。

      Increase memory_limit in your server and try again.

    • 增加服务器中的memory_limit,然后重试。

安装步骤

Upload CSV Mass Importer plugin to your wordpress installation and activate it.

将CSV Mass Importer插件上传到您的wordpress安装并激活它。

下载地址
https://downloads.wordpress.org/plugin/csv-mass-importer.zip
-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Adistry Profile WidgetAdistry配置文件小部件
[wordpress插件] AdForum oEmbed嵌入AdForum
[wordpress插件] AccarouselAccarousel
[wordpress插件] A-2-Z Alphabetical Archive LinksA-2-Z字母档案链接
[wordpress插件] Calendarista Basic Edition – WordPress appointment booking systemCalendarista Basic Edition – WordPress预约系统
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8001
问题? 7234
如何快速搭建抽奖助手小程序(无需代码知识) 5023
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5977
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5500
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5196
如何解决渲染层网络错误Failed to load media? 16550
小程序找号找回 释放昵称? 2415
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2494
删除部分微信用户个人数据的通知,怎么删除? 5534