How Do I Show My Members As Active - Part 2

I asked this question previously at

Unfortunately the screenshot and video that have the answers are no longer available. I have the same problem again at

When I order Members Alphabetically it shows "Viewing 1 - 20 out of 167 members"
See Screenshot
This is correct, however when I order Members by Last Active or Newly Registered it shows
"Viewing 1 - 20 out of 86 members" for both. See screenshots.

Can you tell me please again how I can make it show "Viewing 1 - 20 out of 167 members" instead of only 86 members.

Support Access is granted and FTP credentials are there.

  • Predrag Dubajic
    • Support

    Hi Mary,

    Hope you're doing well :slight_smile:

    I'm not sure which path Rupok took there as the code is missing but with the below code inside your child theme functions.php or mu-plugin you can force the members to get active status in DB:

    function activate_all_bp_members() {
    	global $wpdb;
    	foreach ( $wpdb->get_col( "SELECT ID FROM $wpdb->users" ) as $user_id ) {
    	    bp_update_user_meta( $user_id, 'last_activity', bp_core_current_time() );
    add_action( 'init', 'activate_all_bp_members' );

    Let us know if this does the trick for you.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.