Skip to:
Content
Pages
Categories
Search
Top
Bottom

xprofile fields create link


  • Round World Travels
    Participant

    @gearupandplay

    I’m trying to create a link on a members blog posts by pulling two fields from their profile.
    1st Field: Website Name
    2nd Field: URL to website

    I was trying the following code but it don’t work.

    <a href="<?php echo xprofile_get_field_data( 'Your Website URL', get_the_author_meta( 'ID' ) ); ?>"><?php echo xprofile_get_field_data( 'Your Website Name', get_the_author_meta( 'ID' ) ); ?></a>

    Note: Alone each code does work in calling the right information. Can anyone point me in the right direction

Viewing 1 replies (of 1 total)

  • Round World Travels
    Participant

    @gearupandplay

    OK, I figured this out, I had to change the URL buddypress profile field to a text field instead of a URL field. It would be ideal to keep it a URL field but it works this way. Anyone know how I would keep it a URL field but fetch plain text for the URL.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar