Display some user data on a single page
I am attempting to display some user data on a single page so members of a group can see all of the members within that group’s info without going into each profile. I have successfully displayed 2 custom fields, but cannot display the user’s email address.
It is a private site, so I cannot link to it. Hopefully this is something minor that I am just missing.
I have found so many scattered suggestions for this type of thing, but nothing has worked.
I have tried all of these types with various field names (email, Email, Email address, Account email, etc.) and nothing displays the email address.
<?php echo bp_member_profile_data(‘field=Email’); ?>
<?php echo bp_member_profile_data(‘field=Account email’); ?>
<?php echo xprofile_get_field_data( ‘field=Account email’ ); ?>
<?php echo get_post_meta(get_the_id(), ‘user_email’, true); ?>
<?php echo xprofile_get_field_data( ‘user_email’, get_the_author_id()) ?>
I am updating a copied version in my theme of members.php from /buddypress/members/
Any ideas would be appreciated. Thanks!
- You must be logged in to reply to this topic.