Sorry friends but it is not seems to work fine.
the condition I insert gives always an empty case.
if someone will be kind to check the code and give me an advice I will be very thankfull, (although this is not the best way to do so.)
dromy
I also tried:
<?php
$social_usr_URL = bp_member_profile_data( 'field=gplus' );
if ( !empty($social_usr_URL ) {
echo "<a href='" + $bp_member_profile_data( 'field=gplus' ) + "' title='My google plus'><img src='/wp-content/themes/formation-child/images/gplus.png' alt='gplus' /></a>";
}
<?php endif; ?>
still nothing..
also tried:
<?php $social_usr_URL = bp_member_profile_data( 'field=gplus' );
if ( !empty( $social_usr_URL ) { ?>
<a href="<?php bp_member_profile_data( 'field=gplus' ); ?>" title="My gplus"><img src="/images/gplus.png" alt="gplus" /></a>
<?php } endif; ?>
not working.
I have typed this and now it works without the image, can someone tell me why there is no image:
<?php $Usr_Url = bp_member_profile_data('field=facebook' );
if ( !empty( $Usr_Url )) { ?>
<a href="<?php $Usr_Url; ?>" title="My facebook">
<img src="/wp-content/themes/formation-child/images/facebook.png" alt="facebook" /></a>
<?php } ?>
output is only the text in the field. missing the image. why?