Skip to:
Content
Pages
Categories
Search
Top
Bottom

display recently registered users

Viewing 2 replies - 1 through 2 (of 2 total)
  • @shanebp

    Moderator

    The sql call isn’t returning the user ID.

    Change the sql to:
    $usernames = $wpdb->get_results("SELECT ID, user_nicename FROM $wpdb->users ORDER BY ID DESC LIMIT 5");

    Then make this change:
    $recentusers .= '<li>' . bp_core_fetch_avatar( array( 'item_id' => $username->ID, 'type' => 'full') ) . '<a href="' . bp_core_get_user_domain($username->ID) .'">' . $username->user_nicename . '</a></li>';

    @neoseeyou

    Participant

    Wow thank you for your fast answer Sir.

    My php skills are too light 😉

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘display recently registered users’ is closed to new replies.
Skip to toolbar