Title: Sorting and jquery functionality not working
Last modified: October 28, 2019

---

# Sorting and jquery functionality not working

 *  Resolved [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/)
 * I have scoured the internet for a solution to why the jquery isn’t working on
   these tables. I’ve tried multiple options but am not able to come up with a solution.
   Any help would be greatly appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsorting-and-jquery-functionality-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12075107)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Are you sure that the “Use DataTables” checkbox is checked for this table? Also,
   do you still see the table Shortcode on the “Edit” screen of this page? (There
   are themes that replace it with the final HTML code, if a feature like frontend
   editing is used.)
 * Regards,
    Tobias
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12076482)
 * Ah, yes. I turned on the ‘Use DataTables’ forgot I turned it off. There is a 
   CDN on this so it takes a bit to recache the site. Here are some images and a
   video of me trying to use this in the meantime.
 * [https://drive.google.com/open?id=1m5i-Gy-GYm-KBgzx9R_3iCcrsKZxYvK6](https://drive.google.com/open?id=1m5i-Gy-GYm-KBgzx9R_3iCcrsKZxYvK6)
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12076497)
 * I’ve tried disabling all of the plugins with no luck, though I suspect that I
   have two instances of jquery.
 *     ```
       <script type='text/javascript' src='https://portal.racingdudes.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp'></script>
       <script type='text/javascript' src='https://portal.racingdudes.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1'></script>
       ```
   
 * I’ve removed one at a time to no avail either. I’m also running this in a dev
   environment completely removed from the CDN and it’s still non-functional. I’m
   running out of ideas to try. I appreciate any thoughts on this.
    -  This reply was modified 6 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 6 years, 7 months ago by [doc4](https://wordpress.org/support/users/doc4/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077079)
 * Hi,
 * indeed, now the DataTables JS library is loaded. Those two lines regarding jQuery
   are also totally fine!
 * Something else must be interfering. Can you therefore please try again after 
   temporarily deactivating all other plugins and after switching to a WordPress
   default theme like Twenty Sixteen? That way, we can find what’s causing this.
 * Regards,
    Tobias
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077089)
 * Good call on switching themes. Let me try that, be right back.
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077104)
 * Switching themes does, in fact, make the sorting work, with and without the plugins
   activated. I don’t think the plugins are the cause, something in the theme must
   be causing this to happen.
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077121)
 * This is interesting, removing the header.php file seems to fix the problem. Still
   digging.
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077152)
 * Alright removing `<?php echo rdwpVueAppCssClasses(); ?>` from the header fixes
   everything. I’m just not sure what this is at the moment.
 *     ```
       <body <?php body_class(); ?>>
       <?php wp_body_open(); ?>
       <div id="rd-wp-app" class="rdpp-v6-3-0 wrap <?php echo rdwpVueAppCssClasses(); ?>">
       ```
   
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077269)
 * And the function is
 *     ```
       if ( ! function_exists( 'rdwpVueAppCssClasses' ) ) :
           function rdwpVueAppCssClasses() {
               return implode(
                       ' ',
                       ThemeOptions()->VUE_APP_CSS_CLASSES ?? []
               );
           }
       endif;
       ```
   
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077602)
 * Hi,
 * this seems to be adding an `access-control` CSS class, which might then be used
   in some JavaScript code that captures all clicks. That would be my guess here.
 * My suggestion would be to ask the theme developers about this then.
 * Regards,
    Tobias
 *  Thread Starter [doc4](https://wordpress.org/support/users/doc4/)
 * (@doc4)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077608)
 * Thank you, I’m doing just that. Good news is your plugin is not the issue 🙂
   
   I Really appreciate the help on this.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077653)
 * Hi,
 * sure, no problem! I hope that you can find a solution!
 * Best wishes,
    Tobias

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

The topic ‘Sorting and jquery functionality not working’ 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/)

 * 12 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/sorting-and-jquery-functionality-not-working/#post-12077653)
 * Status: resolved