CSV to DataTables, WordPress plugin


Update! The plugin has been approved by WordPress and it is currently available to download within the extensions directory – https://wordpress.org/plugins/aj-csv-to-datatable

Hi tech heads,

Today, I got the opportunity to create my first ever WordPress plugin. Well, this wasn’t quite planned like this but somehow I ended up creating my own WordPress plugin. Since few days, I badly wanted to show CSV data in a DataTable (yes, in Allan’s DataTables) within WordPress. So, I browsed the WordPress extensions page and found an interesting, easily configurable plugin “csv-to-sortable” which uses the JS sortable library. That is a decent plugin and does the job very well, but I wanted use DataTable instead. (Maybe I am in deep love with DataTables). I got extremely inspired by this plugin and then I decided to create a similar looking WordPress plugin so it can use DataTables to present data. I have submitted this plugin to WordPress plugins and it is currently being reviewed. However, if you want to get your hands dirty with this, before WordPress finish reviewing, then here it is.

Link to download the plugin – http://e-innoving.com/samples/wp-plugins/AJ-CSV-to-DataTable.zip

I have created a new repository in GitHub for this plugin so anyone can see what’s happening inside. Click on the link below to view the repository. Installation and usage details are also mentioned inside the GitHub page.

AJ-CSV-to-DataTable in GitHub

After installing the plugin, to show below DataTable, all I had to insert inside the page / post was this,

“[ aj-csv2dt src=http://e-innoving.com/samples/us-503.csv  id=csv_2_dt_test ]” – remove the quotes please

The DataTable will look like this. The sample CSV file I used can be downloaded by clicking on this link.


[aj-csv2dt src=http://e-innoving.com/samples/us-503.csv  id=csv_2_dt_test]

Simple isn’t it ? Feel free to pass your thoughts on this. Really appreciate it.

Thanks for reading 🙂


5 thoughts on “CSV to DataTables, WordPress plugin

  1. Nigel Gilbert says:


    This looks really useful, but I can’t get it to display my CSV. I have uploaded it to my WordPress media area – is this OK? The CSV was exported from Mac Numbers and opened and resaved in Excel.



    • Anjana Silva says:

      Hi Nigel,

      Thanks for trying the plugin. Yes,you can upload the CSV to anywhere in application and give the valid URL. What is the error message that you are getting.?


Leave a Reply

Your email address will not be published. Required fields are marked *