Title: Hijacking DataTables
Last modified: November 29, 2024

---

# Hijacking DataTables

 *  Resolved [andjules70](https://wordpress.org/support/users/andjules70/)
 * (@andjules70)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/hijacking-datatables/)
 * I have a page with a couple of TablePress tables and a couple of theme-generated
   dynamic tables.
   One of the TablePress tables uses simple pagination (Next/Previous),
   which means dataTables js is loaded. My client asked me to add pagination to 
   one of the theme-generated tables, so I figured I would use datatables js for
   that too. However, while I am able to initialize the table, it ignores any feature
   customizations. Obviously this is outside of tablePress support, but can you 
   think of any reason Tablepress would somehow block/override custom dataTables
   paramereters on a non-Tablepress table? On the example page, ‘Holdings’ is the
   non-Tablepress table. I am trying to only show Next/Previous buttons but it shows
   all DataTable defaults (info, search, pagelength, pagination)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhijacking-datatables%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/hijacking-datatables/#post-18168712)
 * Hi!
 * Thanks for your post and sorry for the trouble!
 * TablePress does not in any way interact with other (non-TablePress) tables on
   the page, so unfortunately, I can’t tell you why your commands are not working,
   sorry.
 * Note that, if you are following the DataTables documentation at [https://datatables.net/](https://datatables.net/),
   you will first need to update to TablePress 3.0 (after updating WordPress from
   the very old version 6.1.7), because only that comes with DataTables 2.1.x which
   is the version that the documentation on the DataTables website uses.
   (As one
   change, this will change the styling of the pagination though, also see [https://tablepress.org/release-announcement-tablepress-3-0/](https://tablepress.org/release-announcement-tablepress-3-0/).)
 * Best wishes,
   Tobias
 *  Thread Starter [andjules70](https://wordpress.org/support/users/andjules70/)
 * (@andjules70)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/hijacking-datatables/#post-18171366)
 * Thanks for answering, Tobias, I appreciate it.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/hijacking-datatables/#post-18171594)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
   Tobias
 * P.S.: In case you haven’t, please [rate TablePress in the plugin directory](https://wordpress.org/support/plugin/tablepress/reviews/#new-post).
   Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hijacking DataTables’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/hijacking-datatables/#post-18171594)
 * Status: resolved