Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: group member names push into array not working

@shanebp

Moderator

As I pointed out above, you should use bp_get_group_member_name() not bp_group_member_name().
The latter will echo out the name. The former will return it as a variable.

Check your error logs.
You need to be on a group page to use while ( bp_group_members() )
Otherwise you need to precede it with if ( bp_group_has_members( 'group_id=15' ) ) :

Skip to toolbar