@pbtam
12 years, 5 months ago
Hey modemlooper, I tried the line of code: bp_member_profile_data( ‘field=the field name’ );
but it simply puts the line of code as text onto my groups page. is this because the data is in the members loop but not available in the groups loop?
EDIT:
I found a way to do it here: https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/profile-fields-in-members-list-on-groups-page/
the code used was this:
<?php $location = xprofile_get_field_data('Location', bp_get_group_member_id()); if(!empty($location)) : ?>
I checked the entry.php file in the theme/activity folder but I was unable to find an explanation to insert xprofile fields. Any hints?
12 years, 6 months ago
Thanks for the advice Paul. This was incredibly helpful.