Title: Column active filter not working
Last modified: August 21, 2016

---

# Column active filter not working

 *  Resolved [Mikkel Rommelhoff](https://wordpress.org/support/users/mrommel/)
 * (@mrommel)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/column-active-filter-not-working/)
 * Dear author,
 * Using your great plugin in a theme. Went to users > users and I noticed that 
   the active column has issues sorting.
 * It seems like it will sort all admins but it will not sort through all users.
   I will try have a look at it again later.
 * Please if you know this issue or how to deal with it. Let me know.
 * Cheers
 * Rommel
 * [http://wordpress.org/plugins/user-activation-email/](http://wordpress.org/plugins/user-activation-email/)

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

 *  Thread Starter [Mikkel Rommelhoff](https://wordpress.org/support/users/mrommel/)
 * (@mrommel)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/column-active-filter-not-working/#post-4155111)
 * One of our team members solved this by changing the following code in the plugin.
 * Line 362
 *  function sortable_active_query( $query )
    { if( !is_admin() ) return;
 *  global $wpdb;
    if( ‘active’ == $query->query_vars[‘orderby’] ) { $query->query_from
   = $query->query_from .”,”. $wpdb->usermeta; $query->query_where = str_replace(‘
   WHERE 1=1’, ” WHERE ( $wpdb->usermeta.meta_key = ‘uae_user_activation_code’ AND
   $wpdb->usermeta.user_id = $wpdb->users.ID ) “, $query->query_where ); $query-
   >query_orderby = str_replace( ‘user_login’, “meta_value”, $query->query_orderby);}}
 *  Plugin Author [NateJacobs](https://wordpress.org/support/users/natejacobs/)
 * (@natejacobs)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/column-active-filter-not-working/#post-4155230)
 * Thanks for finding that. That is indeed a bug. I’ll fix it in the next version
   which will be out shortly after WordPress 3.7.
 *  [allenjoelson](https://wordpress.org/support/users/allenjoelson/)
 * (@allenjoelson)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/column-active-filter-not-working/#post-4155279)
 * Dear Nate,
 * first of all thank you for great plugin.
 * Unfortunately Column active filter not working with (my) WordPress Version 3.9.2.
 * mRommel fixing also did not solve the problem.
 * Best regards
    Allen

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

The topic ‘Column active filter not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-activation-email_9e9463.svg)
 * [User Activation Email](https://wordpress.org/plugins/user-activation-email/)
 * [Support Threads](https://wordpress.org/support/plugin/user-activation-email/)
 * [Active Topics](https://wordpress.org/support/plugin/user-activation-email/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-activation-email/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-activation-email/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [allenjoelson](https://wordpress.org/support/users/allenjoelson/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/column-active-filter-not-working/#post-4155279)
 * Status: resolved