Displaying Buddypress profile fields

I am trying to get this code to work for displaying a profile field but it is linking the url of the existing page instead. It has worked for me before.. but it isn't now.. any ideas?

if ( $string = xprofile_get_field_data( 'URL Site', get_the_author_meta('ID') ) ) {
        echo $string;
    }

Thanks!! :slight_smile: