Title: dataTable is not a function
Last modified: June 1, 2018

---

# dataTable is not a function

 *  Resolved [duschsocke](https://wordpress.org/support/users/duschsocke/)
 * (@duschsocke)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/datatable-is-not-a-function-2/)
 * Hello,
    the tablepress plugin is causing the following error on any page with
   a tablepress table:
 *     ```
       (index):538 Uncaught TypeError: $(...).dataTable is not a function
           at HTMLDocument.<anonymous> ((index):538)
           at h (header-ce20d0dd876a8bcbd4205eb5c7aa5875.js:10)
           at Object.fireWith [as resolveWith] (header-ce20d0dd876a8bcbd4205eb5c7aa5875.js:10)
           at Function.ready (header-ce20d0dd876a8bcbd4205eb5c7aa5875.js:10)
           at HTMLDocument.g (header-ce20d0dd876a8bcbd4205eb5c7aa5875.js:10)
       ```
   
 * This happens on a selfmade theme using Bootstrap 4.1 and Sage 9. In other posts
   I read the problem occurs due to ? incorrect load queues ? of jquery and tablepress.
 * I do not understand how tablepress can cause this error, if I am using Boostrap
   which is loading jquery. Shouldnt jquery include dataTable automatically? Do 
   I have to load dataTable on my own? If so: Why doesn’t tablepress load it? I 
   want to have as few dependencies as possible.
 * Best wishes,
    William

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/datatable-is-not-a-function-2/#post-10349169)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Most WordPress plugins need the jQuery that comes with it. Bootstrap does not
   load that for you.
 * Can you please post a link to the page with the table where this problem happens,
   so that I can take a direct look? Thanks!
 * Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘dataTable is not a function’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/datatable-is-not-a-function-2/#post-10349169)
 * Status: resolved