Just posting back with the solution in case it helps anyone else. This function will do it:
In my case it’ll be:
<?php if ( xprofile_get_field_data( 'Profile', $user_ID ) ) : ?>
<?php echo xprofile_get_field_data( 'Profile', $user_ID ); ?>
<?php endif; ?>
@bphelp Thanks for the answer, but that doesn’t seem to be it
<?php echo bp_member_profile_data( 'field=Profile:' ); ?>but no dice.
Also it seems to work fine without echoing it on members/members-loop.php.
It may be that the function only works inside the members loop, but I’m not sure?
maikunari started the topic [Resolved] Add profile fields to Group Members loop in the forum How-to & Troubleshooting 1 year, 2 months ago
Is there any way to get profile fields to work on the groups/single/members.php template?
I have a custom profile field named “profile”.
I’ve tried adding:`<?php if ( bp_get_member_profile_data( ‘field=Profile’ ) ) : ?>
<?php bp_member_profile_data( ‘field=Profile’ ); ?>
<?php endif; ?>`
This works in members/members-loop.php but doesn’t…[Read more]
@maikunari Not recently active