$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.
Interesting option but they want to have a link that previews the answers. So in that section I will display “profile group title” and some sort of user friendly “no records found”
I was hoping it would work like get_title or get_posts and you could pass the id but that’s not how it works.
I suspect I will do a wp_query of at the top and use the page group id to key the title from the results. I was just wondering if there was a cleaner or more appropriate way to get this.