Reply To: Displaying email address in profile
Hi Shane. Like so? This still disables the site.
function tiquality_add_custom_field() {
if ( bp_is_active( 'xprofile' ) ) :
?>
<div class="bp-widget <?php bp_the_profile_group_slug(); ?>">
<table class="profile-fields">
<tr class="my_mail">
<td class="label">Contact me</td>
<td class="data"><a href="mailto:<?php bp_displayed_user_email(); ?>"><?php bp_displayed_user_email(); ?></a></td>
</tr>
</table>
</div>
<?php
endif;
}
add_action('bp_profile_field_buttons', 'tiquality_add_custom_field');