Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Displaying email address in profile

@stunley

Participant

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');
Skip to toolbar