Title: Sorting and Pagination??
Last modified: August 22, 2016

---

# Sorting and Pagination??

 *  Resolved [wpjuniorkrd](https://wordpress.org/support/users/wpjuniorkrd/)
 * (@wpjuniorkrd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/)
 * Hi I have a website and tried everytihng before writing here 🙁 but the pagination
   and sorting is not working and couldnt find why. This is very important to me
 * [http://www.kredibasvurusu.net/test2/](http://www.kredibasvurusu.net/test2/)
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Thread Starter [wpjuniorkrd](https://wordpress.org/support/users/wpjuniorkrd/)
 * (@wpjuniorkrd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5373993)
 * and also it does not fit the page width :/
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374029)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * The reason for this issue that one of the plugins on your site is raising a JavaScript
   error, which you can see in the JS error log console:
 *     ```
       Uncaught TypeError: Cannot read property 'length' of undefined
       ```
   
 * Unfortunately, I can’t really see which file is causing this 🙁
    I can therefore
   only suggest that you temporarily deactivate all plugins except TablePress one
   by one, until the error disappears.
 * Regarding the table not fitting on the page: The reason for that is that there’s
   simply too much data in the table for it to fit. The content in the columns requires
   more width than what’s available. If you can’t remove data, you could try turning
   on the “Horizontal Scrolling” checkbox on the table’s “Edit” screen (which will
   not work until the JS error from above is fixed).
 * Regards,
    Tobias
 *  Thread Starter [wpjuniorkrd](https://wordpress.org/support/users/wpjuniorkrd/)
 * (@wpjuniorkrd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374122)
 * Hi, I got all the plugins disabled, but the sorting and pagination again does
   not work
 * Regards
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374124)
 * Hi,
 * ok, somehow the call to initialize the JS features has disappeared now…
    Is the“
   Use DataTables” checkbox still active on the “Edit” screen of the table? And (
   which is more likely the cause), does your theme contain a call to the `wp_footer();`
   function right before the closing `</body>` tag in the footer.php?
 * Regards,
    Tobias
 *  Thread Starter [wpjuniorkrd](https://wordpress.org/support/users/wpjuniorkrd/)
 * (@wpjuniorkrd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374130)
 * Yes the checkbox is still active in the edit screen of the table
 * Here you can find the codes in my theme both index.php and footer.php are seperated
   by a line in the txt file.
 * [files_download](http://kredibasvurusu.net/codes_in_my_theme.txt)
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374135)
 * Hi,
 * ok, please add this line right before
 *     ```
       </body>
       ```
   
 * in the footer.php then:
 *     ```
       <?php wp_footer(); ?>
       ```
   
 * I’m a little bit confused that this line is not there. Did you remove that recently?
 * Regards,
    Tobias
 *  Thread Starter [wpjuniorkrd](https://wordpress.org/support/users/wpjuniorkrd/)
 * (@wpjuniorkrd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374141)
 * at the end of the footer.php, I have edited it like this. But I havent touched
   anything before, just added the facebook pixel codes
 * </body>
    <?php wp_footer(); ?>
 * </html>
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374143)
 * Hi,
 * please put that line **before** the `</body>`, you will run into other issues
   otherwise.
    Besides that, the sorting should work after that 🙂
 * Regards,
    Tobias
 *  Thread Starter [wpjuniorkrd](https://wordpress.org/support/users/wpjuniorkrd/)
 * (@wpjuniorkrd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374145)
 * I know I am taking your time but I have edited it like that but again the sorting
   and the pagination does not work 🙁
 *  Thread Starter [wpjuniorkrd](https://wordpress.org/support/users/wpjuniorkrd/)
 * (@wpjuniorkrd)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374146)
 * oo sorry for that, it is working :))) many thanks for your great support…
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374150)
 * 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](http://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Sorting and Pagination??’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-pagination/#post-5374150)
 * Status: resolved