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:

  • Michael Bissett
    • Recruit

    Hi @gina, hope you're doing well this evening! :slight_smile:

    Is this code inside, or outside of the loop? If this is inside of a template, would it be possible for you to upload the code to pastebin.com, and post the link to that here?

    Also, could you post a link to where this code could be seen in action please?

    Please advise,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.