Hi Karen,
This plugin will generate the HTML to display a table on a page. So, I am not sure what you are asking for. Can you give me a few more details about your question and maybe an example of what you’d like to do?
Thanks,
Valerie
Hi Valerie,
Thanks for getting back to me. I’m not accessing WordPress database tables directly. I’ve created a registration system (using Formidable, explained below*), and I’m generating HTML tables dynamically to display subsets of the data. At that point, they’re no different from a static HTML table. I have their IDs, and want to be able to easily export or print them.
It seems like I’d have my wish, if there’s a way to connect my (static HTML) table and your DataTables display. Ideally, it would be a shortcode, like [tablemaster tableid="my_table_id" datatables="true" buttons="true"].
The key things I’m looking for are
1. Export a table to CSV (most important)
2. Print a table (less important)
3. Shortcode or similar to link my table to DataTables by its ID
The capability to re-sort a table by clicking on column headings is a nice DataTables bonus, but not essential for my needs.
I can add JavaScript or PHP if given the code.
I don’t have a live link I can send you, because I don’t want to expose peoples’ contact info to the world. It’s very similar to your examples, where I have many columns of data, for up to 500+ rows, and am displaying various subsets of them.
Does my question make sense now? Is there a way to pass a table ID to TableMaster, or could there be?
Thank you,
Karen
*Formidable is a form-builder plugin so people who don’t code can make databases.
https://wordpress.org/plugins/formidable/
In my case, I’ve built a registration form, and then created Formidable views to display selected entries and fields (rows and columns). Most of my views build an HTML table.