Reply To: [Resolved] get profile group name
I figured it out.
$args = array(
'profile_group_id' => $current_profile_group_id
);
$data_groups = BP_XProfile_Group::get( $args );
echo '<h1>'.$data_groups[0]->name.'</h1>';
echo '<p>'.'It looks like you have not given any responses here yet.'.'</p>';
I added a counter var in the loop which initializes to 0 if after passing through the loop its 0 it will execute this.