Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Profile Data On A Member Directory


landykos
Participant

@landykos

I just did a query on the members table then did a for each on the results. and for each group run the buddypress function:

global $wpdb;

$groups = $wpdb->get_results(“SELECT * FROM wp_bp_groups order by name”, ARRAY_A);

foreach ($groups as $group) :

bp_group_has_members(‘group_id=’.$group[‘id’].’&exclude_admins_mods=false’)

Then $group[‘name’] will get you the members name.

Hope that helps you!

LK

Skip to toolbar