Viewing 4 replies - 1 through 4 (of 4 total)
  • dmallon

    (@dmallon)

    I am experiencing this same problem. Sorting by user-meta works on a standalone WP installation but returns no results in a multi-site installation.

    Thank you for any assistance you can provide.

    Same problem here. Any fix for this?

    This is a bug in the Codepress Admin Columns Pro add-on.

    In WordPress, user meta is stored in the wp_users table and not in wp_xx_table. On line 206 and 207 of the file cac-addon-pro\classes\sortable\classes\user.php:

    $wpdb->prefix should be changed to $wpdb->base_prefix

    Patch:

    Replace line 206 and 207 with
    $user_query->query_where .= ” AND {$wpdb->base_prefix}users.ID IN ({$column_names})”;
    $user_query->query_orderby = “ORDER BY FIELD({$wpdb->base_prefix}users.ID,{$column_names})”;

    Plugin Author Tobias Schutter

    (@tschutter)

    Hi fried_eggz, thank you for the fix, I have included it in the next release v1.0.5, which should be available now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom User Fields return blank screen’ is closed to new replies.