Title: AJ CSV to DataTable
Author: anjanasilva
Published: <strong>2015 年 10 月 30 日</strong>
Last modified: 2017 年 12 月 13 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/aj-csv-to-datatable.svg)

# AJ CSV to DataTable

 作者：[anjanasilva](https://profiles.wordpress.org/anjanasilva/)

[下载](https://downloads.wordpress.org/plugin/aj-csv-to-datatable.zip)

 * [详情](https://cn.wordpress.org/plugins/aj-csv-to-datatable/#description)
 * [评价](https://cn.wordpress.org/plugins/aj-csv-to-datatable/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/aj-csv-to-datatable/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/aj-csv-to-datatable/#developers)

 [支持](https://wordpress.org/support/plugin/aj-csv-to-datatable/)

## 描述

WordPress Plugin to present a CSV file in a DataTable. This will import data from
a CSV file and display in a DataTable.

### How To Use

Insert following code snippet into any page or post using this shortcode, make sure
you use an unique id :

    ```
    [aj-csv2dt src=http://e-innoving.com/samples/SacramentocrimeJanuary2006.csv id=datatable_id]
    ```

You can now disable DataTable search, pagination, sorting and displaying of bInfo
with the recent 1.1 release. The purpose of this is to render a static looking HTML
Table out of a CSV file.

    ```
    [aj-csv2dt src=http://e-innoving.com/samples/SacramentocrimeJanuary2006.csv id=datatable_id disable_search=true disable_paging=true disable_binfo=true disable_sorting=true]
    ```

Save it, just refresh the page and see. Less hassle, all your csv data is inside
the DataTable.

### Credits

This plugin utilizes some excellent open source scripts, functions and images whose
creators deserve to be recognized.

 1. Shaun Scovil, for inspiring me through his CSV to Sortable Plugin.
 2. V.Krishn wrote a handy [PHP function](http://github.com/insteps/phputils) that 
    enables users of PHP < 5.3 to utilize the `str_getcsv()` function that powers this
    plugin.

### Common Errors

 1. If the datatable misbehaves, this is probably due to an incorrect csv format. In
    that case, open csv file in excel
     and re-save it as a new csv. Most likely this
    will resolve your issue.

## 屏幕截图

 * [[

## 安装

 1. Install and activate the plugin via `WP-Admin > Plugins`.
 2. Add shortcode to a post or page: `[aj-csv2dt src=http://samplecsvs.s3.amazonaws.
    com/SacramentocrimeJanuary2006.csv id=datatable_id]`.

## 常见问题

  Installation Instructions

 1. Install and activate the plugin via `WP-Admin > Plugins`.
 2. Add shortcode to a post or page: `[aj-csv2dt src=http://samplecsvs.s3.amazonaws.
    com/SacramentocrimeJanuary2006.csv id=datatable_id]`.

## 评价

此插件暂无评价。

## 贡献者及开发者

「AJ CSV to DataTable」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ anjanasilva ](https://profiles.wordpress.org/anjanasilva/)

[帮助将「AJ CSV to DataTable」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/aj-csv-to-datatable)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/aj-csv-to-datatable/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/aj-csv-to-datatable/)，或通过[RSS](https://plugins.trac.wordpress.org/log/aj-csv-to-datatable/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/aj-csv-to-datatable/)。

## 更新日志

#### 1.1

 * Added options to disable DataTable searching, pagination, sorting and showing
   of bInfo.

#### 1.0

 * First public release.

## 额外信息

 *  版本 **1.1**
 *  最后更新：**8 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.3.1 或更高版本 **
 *  已测试的最高版本为 **4.7.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/aj-csv-to-datatable/)
 * 标签
 * [csv](https://cn.wordpress.org/plugins/tags/csv/)[data](https://cn.wordpress.org/plugins/tags/data/)
   [datatable](https://cn.wordpress.org/plugins/tags/datatable/)[import](https://cn.wordpress.org/plugins/tags/import/)
   [table](https://cn.wordpress.org/plugins/tags/table/)
 *  [高级视图](https://cn.wordpress.org/plugins/aj-csv-to-datatable/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/aj-csv-to-datatable/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/aj-csv-to-datatable/reviews/)

## 贡献者

 *   [ anjanasilva ](https://profiles.wordpress.org/anjanasilva/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/aj-csv-to-datatable/)