Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Display Buddy Friend list

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.

Skip to toolbar