-
maikunari replied to the topic [Resolved] Add profile fields to Group Members loop in the forum How-to & Troubleshooting 11 years, 4 months ago
Just posting back with the solution in case it helps anyone else. This function will do it:
xprofile_get_field_data('Profile',$u_id);
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; ?>Thanks to chifliiiii on WordPress Answers…[Read more]
-
maikunari replied to the topic [Resolved] Add profile fields to Group Members loop in the forum How-to & Troubleshooting 11 years, 4 months ago
@shanebp Thanks for the tip, that may be just what I need!
-
maikunari replied to the topic [Resolved] Add profile fields to Group Members loop in the forum How-to & Troubleshooting 11 years, 4 months ago
@bphelp Thanks for the answer, but that doesn’t seem to be it 🙁
I tried
<?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 11 years, 4 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
Active 3 years, 1 month ago