Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Buddy Friend list

  • I am interested in displaying my buddy friend list in a sidebar widget. Can anyone point me to a example of how to do this?

    Your help is appreciated!

Viewing 1 replies (of 1 total)
  • Hi Jonathan
    That’s a bit of a big question. To get the current user’s friend list, you can use: bp_has_members( ‘populate_extras=0&user_id=’ . $bp->loggedin_user->id ) ) and then iterate through with the rest of the members’ member tags. Take a look at bp-core/bp-core-widgets.php at all of the ‘BP_Core_Members_Widget’ class.

    If you copy-and-paste that into your plugin or into your theme’s functions.php, and also the appropriate add_action call from bp_core_register_widgets(), rename the class, it ought to work.

Viewing 1 replies (of 1 total)
  • The topic ‘Display Buddy Friend list’ is closed to new replies.
Skip to toolbar