Frequently Asked Questions (FAQ)
Sorting or other JS functions are not working

If the “Use DataTables” checkbox is checked on a table’s “Edit” screen, but functions like sorting, search, or pagination are not showing up, this usually indicates a JavaScript problem.

The most common reason for this is an old and outdated version of the jQuery JavaScript library, that some themes or plugins load — although WordPress already ships with the correct and up-to-date version.
To check for this, please search the generated HTML source of the page with the table (accessible via the “View Source” feature in the browser) for the string “jquery”. If there’s more than one result within HTML <script> tags, this means that the library is loaded multiple times. If that is the case, the loading of the old versions should be stopped, so that only the version that comes with WordPress is loaded. This usually means deleting a line similar to

<script type="text/javascript" src="<?php bloginfo('template_url');?>/js/jquery.js"></script>

from the theme’s “header.php” file. Other variants are lines like

wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', ... );

in the “functions.php”.

Another reason for this issue could be a broken script by another plugin. To check for that, please use the built-in “Developer Tools” of your browser. Right click your page and pick “Inspect Element” (in Chrome, Firefox, and Opera) or press the F12 key (in Internet Explorer). You should then see the “Developer Tools”, where you can switch to the “Console” tab to see JavaScript problems on the page. Each error should have a filename next to it, from which you can extract the name of the plugin that has the error. Then, try loading the page again after temporarily deactivating that plugin in WordPress.

Top