Title: WP DataTable
Author: samsk
Published: <strong>2016 年 9 月 6 日</strong>
Last modified: 2025 年 1 月 30 日

---

搜索插件

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

![](https://ps.w.org/wp-datatable/assets/icon-128x128.png?rev=1858074)

# WP DataTable

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

[下载](https://downloads.wordpress.org/plugin/wp-datatable.0.2.7.zip)

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

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

## 描述

WP DataTable is a WordPress plugin for insertion of static or dynamic DataTable 
functionality (http://datatables.net/) to any blog post or page.
 Extensions included:
Buttons (fat=1), Column visibility, HTML5 export (fat=1), Print view (fat=1), ColReorder,
FixedColumns, FixedHeader, Responsive, Select

#### Features

 * Provision of DataTables script and css style
 * Full configuration via raw javascript (see https://datatables.net/reference/option/
   for more info)

#### Usage

    ```
    [wp-datatable id="ID" fat="LEVEL"]
        paging: false,
        responsive: true,
        search: true,
        //.. and more - see https://datatables.net/reference/option for full reference
    [/wp-datatable]
    ```

 * _id_ – specifies ID of existing table to which datatable functionality should
   be applied
 * _fat_ – (_optional_) provide fat version of datatables (see Fat level)
 * `CONTENT` – optional datatables configuration

#### Fat level

 1. adds Button extension with HTML5 export and Print preview + JSZip for excel export

## 安装

 1. Make sure you are using WordPress 4.0 or later and that your server is running 
    PHP 5.2.4 or later (same requirement as WordPress itself)
 2. Install and activate the plugin as usual from the ‘Plugins’ menu in WordPress.

## 评价

![](https://secure.gravatar.com/avatar/a73a40f4edcbdceaf7a3e42de88e456b8626407176cbcfef09739965691bec85?
s=60&d=retro&r=g)

### 󠀁[AMAZING!](https://wordpress.org/support/topic/amazing-1883/)󠁿

 [ssx95351](https://profiles.wordpress.org/ssx95351/) 2018 年 8 月 31 日

I was struggling to put DataTables on my site, due to conflicts. This plugin solved
it all!! So much easier than trying to implement it manually. I can’t stress enough
how great this FREE plugin is! I will definitely be making a donation to the developer
for his hard work…. THANK YOU!!!!!!!

![](https://secure.gravatar.com/avatar/a7575fd9bef92476cf3386ef55752dd321fcf695aeccede6abcc7b4b718130ab?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-18261/)󠁿

 [manesvenom](https://profiles.wordpress.org/manesvenom/) 2018 年 6 月 19 日

Very nice plugin to integrate Datatable to Wordpress.

![](https://secure.gravatar.com/avatar/49d9dc306d45997f1fe54955e0f3ab0b65bf5ecf285bd5c640d7b3237e150606?
s=60&d=retro&r=g)

### 󠀁[Can’t believe it isn’t more popular](https://wordpress.org/support/topic/cant-believe-it-isnt-more-popular/)󠁿

 [ohthetrees](https://profiles.wordpress.org/ohthetrees/) 2018 年 5 月 31 日 1 回复

The great thing about this plugin is it works with any table, even if it is generated
outside of wordpress, or with another plugin. I’m not aware of any other plugin 
that does the same. Also it is based on the the extremely powerful and popular DataTables
jquery project. I just hope that the developer gets enough love to keep maintaining
the plugin.

![](https://secure.gravatar.com/avatar/e63b2aafc9e7f198f04d99d479fcff9a8e7dfe510e7c821bc0bf3ffd7cf8c8e7?
s=60&d=retro&r=g)

### 󠀁[Awesome](https://wordpress.org/support/topic/awesome-5237/)󠁿

 [8oris](https://profiles.wordpress.org/8oris/) 2017 年 12 月 14 日

Works perfectly, very reliable! A great one very useful!

![](https://secure.gravatar.com/avatar/f81739e41d524d2059883bf88d741fbf36d00814c9687de39065202d7e9d3777?
s=60&d=retro&r=g)

### 󠀁[Thanks!](https://wordpress.org/support/topic/thanks-1286/)󠁿

 [i2eno](https://profiles.wordpress.org/i2eno/) 2019 年 12 月 6 日

Thank you very much 🙂

![](https://secure.gravatar.com/avatar/71b4685f18a90af50fd6ef1b93bf2c2cddc1db1f938b4f2dd2b191ea26b0c085?
s=60&d=retro&r=g)

### 󠀁[Great table styling + CSV export](https://wordpress.org/support/topic/great-table-styling-csv-export/)󠁿

 [veronica](https://profiles.wordpress.org/veronicalobanov/) 2017 年 7 月 27 日

Plugin is simple and allows you to style tables beautifully and easily. I am using
Formidable Forms that generate tables for me, so I could not use any plugins (TablePress
etc.) that require you to create a table or create SQL statement and have it saved
within plugin. My tables are generated dynamically by another plugin so none of 
table plugins worked for me. This plugin allows me to style my tables based on best
practices of DataTable for jQuery. But the biggest thing for me was to be able to
export data into CSV. Author of plugin graciously agreed to add Buttons extensions
to his plugin and I am now able to export to CSV and also Copy table data to clipboard.
Overall this is a great free plugin that allows you to do a lot with your table 
style. Thank you!

 [ 阅读所有6条评价 ](https://wordpress.org/support/plugin/wp-datatable/reviews/)

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.2.7 (2025-01-31)

 * Fix Contributor XSS via id attribute (reported by zaim via Wordfence)

#### 0.2.6 (2022-11-02)

 * Update jQuery DataTables to 1.11.1

#### 0.2.5 (2018-04-13)

 * fix copyright info

#### 0.2.4 (2017-11-07)

 * Update jQuery DataTables to 1.10.16
 * Fixed sort icon paths

#### 0.2.3 (2017-07-23)

 * Update jQuery DataTables to 1.10.15
 * Added Datatables with Button plugin, served if attribute fat=1

#### 0.2.2 (2017-01-18)

 * Fix sort images paths
 * Update jQuery DataTables to 1.10.13

#### 0.2.1 (2016-10-29)

 * Fix warning
 * Include more datatables extensions

#### 0.2.0 (2016-09-04)

 * Initial release

## 额外信息

 *  版本 **0.2.7**
 *  最后更新：**1 年前**
 *  活跃安装数量 **600+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-datatable/)
 * 标签
 * [datatables](https://cn.wordpress.org/plugins/tags/datatables/)[jquery](https://cn.wordpress.org/plugins/tags/jquery/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-datatable/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  6 条 5 星评价     ](https://wordpress.org/support/plugin/wp-datatable/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-datatable/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-datatable/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-datatable/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-datatable/reviews/?filter=1)

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

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://devel.dob.sk/wp-datatable)