• Resolved andjules70

    (@andjules70)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    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/, 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/.)

    Best wishes,
    Tobias

    Thread Starter andjules70

    (@andjules70)

    Thanks for answering, Tobias, I appreciate it.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.