Skip to:
Content
Pages
Categories
Search
Top
Bottom

Online users widget – get user description.


  • autox420
    Participant

    @autox420

    BuddyPress whos online widget only shows avatars of those online.
    Im wondering if its possible to get users description along side the image?
    If yes, how and whats the correct code?

    Something like this but for every user.

    <?php $user_meta = get_userdata(bp_displayed_user_id());echo($user_meta->description);?>

Viewing 1 replies (of 1 total)

  • shanebp
    Moderator

    @shanebp

    You’ll need to write a custom widget.
    There is lots of docs online about writing a WP widget.
    You’ll find BP specifics in this file:
    buddypress\bp-members\classes\class-bp-core-members-widget.php

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar