Why DataTables does not work for my case?

Why DataTables does not work for my case?

ccwccw Posts: 2Questions: 2Answers: 0


In my WordPress site, I do as follows:

  1. Create a test page. Then insert a table based on the https://datatables.net/manual/installation
  2. Download datatable files and then upload them to my server.
  3. Add the javascript and css file.

But after loading the page http://www.sybase-recovery.com/test-datatables/, the table is not paginated and it seems that DataTables are not running at all. Why?


  • allanallan Posts: 54,572Questions: 1Answers: 8,534 Site admin

    Your DataTables initialisation code isn't inside a script tag:

    So it just gets shown on the page:

    Put script tags around it. Also, use jQuery rather than $ here since something is running noConflict on your page.


Sign In or Register to comment.