Topics Map > Plugins

WiscWeb - Using the wpDataTables Plugin

This document includes information about the wpDataTables plug-in, including links to the vendor's site on how to use the plugin.

In this document:

Activation

This plugin is not activated in WiscWeb projects by default. However, Administrators can activate it in the project by following the instructions in WiscWeb - Self service plugin activation / deactivation.

Usage

wpDataTables allows you to create tables and charts that you can edit within WordPress or import from Google Sheets (or several other spreadsheet mediums). See the links below for how to perform basic functions, as well as a link to the full documentation.

Vendor documentation

Full vendor Documentation for wpDataTables can be found on their website.

Important considerations

Please note that when you insert a wpDataTable into a Text Block using the icon within formatting toolbar, you will be presented with a View option for that table.

wpDataTable icon

wpDataTable import dialog box

These views add additional code into the shortcode value, which may cause unintended results regarding the ability to search within your published table.

wpDataTables short code in text block

It is our recommendation to remove the additional "table_view= " code, so that the call is only for the table itself.

wpDataTable shortcode in proper format

Google Sheets tables

In March 2025, Google updated their security policy related to new Google Sheets. They now require integrations with the tooling to be setup with a Google Sheets API key. The WiscWeb team tested this process and found it to be extremely fragile: 

  • Refreshing the page several times ended up breaking the wpDataTables table in only a few seconds.
  • Recent changes to the tooling mean that the following changes to the Google Sheet break the connection and require setup of an entirely new wpDataTables table:
    • Changing the column’s name
    • Changing the column’s order
    • Deleting the column
    • Adding a new column

For these reasons, we do not recommend attempting to connect a new Google Sheet to wpDataTables. Instead, we recommend the following alternative approaches: 

Please note that existing/old Google Sheets tables could be impacted in the same way at any time. We highly recommend migrating those existing setups to one of the alternatives listed above as soon as possible, in order to avoid breaking changes if/when Google makes updates to these.

If you have any questions about these changes, please reach out to the WiscWeb team via the Customer Support Form

Accessibility barriers

In May of 2023, the Center for User Experience completed an accessibility evaluation of the wpDataTables plugin. Several accessibility barriers were identified. The issues were immediately reported to the vendor for remediation. However, at this time, the vendor has not committed to changes. 

The following are the known barriers. Where possible, we've provided workarounds or alternative solutions that are more accessible. 

In-table search function

wpDataTables has an option for including an in-page keyword search. For someone navigating the site using a screen reader, this function: 

  1. Does not announce that entering text into this field will filter the results of the table.
  2. Does not provide the user with any details once the table is actually filtered. 
  3. Provides no status update that the search has been performed or results have been found.

The recommendation is to avoid use of this field where possible:

  1. Navigate to the Sorting and Filtering tab for the table.
  2. Uncheck the box for Enable search block.

No visual indication of keyboard focus in tables

There is no visual indication of keyboard focus as a user navigates through the tables, including the export buttons, sortable heading cells, and search fields. The only indication that happens is a blinking cursor that appears when the user is in a search field.

Horizontal scrolling

For several of the table types, horizontal scrolling is introduced starting at 100% magnification. UW-Madison's accessibility guidance encourages support up to 400% magnification without introducing horizontal scrolling or other magnification barriers. 

The recommendation is to select the option to limit the width of the table and uncheck the option for horizontal scrolling: 

  1. Navigate to the Display tab for the table.
  2. Select the option to Limit the table width to page width.
  3. Select the option to Wrap words to new lines.
  4. Make sure the option to Show a horizontal scrollbar is unchecked. 

Placeholder text is low contrast

The placeholder text in the cells used to filter table content is too low contrast to meet WCAG standards.

Unfortunately, there is no alternative recommendation here.

URL links

The default color for hyperlinks in wpDataTables does not pass contrast. 

The recommendation is to enable the WCAG compatible skin design: 

  1. Navigate to the Customize tab for the table.
  2. Make sure the Main tab is selected.
  3. Check the box that says Make table skin WCAG compatible.

Pagination links

Navigation buttons appear below a table when the table content is split up into several pages. For users navigating the site with a screen reader, these links don’t have very much context. They are announced as “Previous link, 1 link, 2 link, 3 link, Next link." There is help text between the table and the links that describes the displayed content (“Showing 1 to 50 of 137 entries,” for example), and there is a status update when a user selects another page of content (Showing 51 to 100 of 137 entries), so eventually the purpose becomes clear, but out of context the user might not realize the purpose of these navigation links.

The recommendation is to consider removing the pagination of the table: 

  1. Navigate to the Display tab for the table.
  2. Uncheck the option to Show pagination block below table.


Keywords:
data, table, excel, google, sheet, google sheet, spreadsheet, datatables, wpdatatables, issues, render, not working, link, connection, broken table, tables, no rows, no data available
Doc ID:
70109
Owned by:
Matt G. in WiscWeb
Created:
2017-01-20
Updated:
2025-04-03
Sites:
DoIT Help Desk, WiscWeb