Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How to update a manual table from a CSV, Excel or Google Sheets file in wpDataTables

Say your team tracks tasks in an editable wpDataTables table, and every Friday the project lead sends an updated task list as a CSV file. Instead of editing every row, you point the table at the new file and choose what to do with it: replace the rows, add the new rows, or replace the whole table. The update works for manual tables, the editable tables stored in your database.

Which update option should I choose?

Choose the option by what the new file holds. The first two keep your table’s columns and settings, the third starts the table again from the file:

Option What happens What the file needs
Replace rows with source data Deletes all rows in the table and adds the rows from the file. Column settings stay. The same number of columns, the same column headers, and at least one row.
Add rows to the current table data Keeps the rows in the table and adds the rows from the file below them. The same number of columns, the same column headers, and at least one row.
Replace the entire table with the source Deletes all rows and all column settings, and creates the table again from the file with default column settings. Any structure.

There is no undo. Duplicate the table before you update it, so you can go back to the old data. In wpDataTables → wpDataTables, use the table’s duplicate action, type a New table title in the Duplicate table window, keep Duplicate database table on, and click Duplicate.

How do I update a manual table from a file?

Open the manual table, choose the update option and the file in the Data source tab, and click Save Changes.

  1. Open the table. Go to wpDataTables → wpDataTables and open your manual table.
  2. Choose the option. In the Data source tab, open Select how to use source file data and choose one of the three options.
  3. Pick the file. In Source file path or URL, click Browse… to choose a CSV or Excel file from the Media Library, or paste the URL of a file or a published Google sheet.
  4. Save and confirm. Click Save Changes. The Are you sure? window explains what will happen to your data. Click Yes, save table to run the update, or No, cancel to go back.
Updating a manual wpDataTables table from a CSV file with Replace rows with source data, the source file path and the Are you sure? confirmation window
Updating a manual table, shown as overlapping panels: (1) Select how to use source file data, (2) Source file path or URL with Browse, (3) Yes, save table or No, cancel in the confirmation window.

How do I prepare the file for the update?

Export the file with the same column headers as the table, in the same order, and check the date format. For the first two options, the headers must match the table exactly.

The update runs once, when you save. Later changes in the file don’t reach the table. If you want a table that always follows a file, create a linked table instead.

What should I remember about updating manual tables from files?

In the Data source tab of a manual table, choose Replace rows with source data, Add rows to the current table data or Replace the entire table with the source, pick the file in Source file path or URL and click Save Changes. The first two need the same columns and headers. Match the date format, and duplicate the table first, because there is no undo.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box