Skip to:
Content
Pages
Categories
Search
Top
Bottom

Display Xprofrile Field with Anchor Text


  • u_Oi
    Participant

    @arutam

    Hi, I would like to give it an anchor text instead content of the field? I tried couple ways but I got different errors… what I am making wrong? (I set the field as URL)

    /* Function Buddypress */
    function bbp_add_xprofile_field() { 
    $user_donation = xprofile_get_field_data( 'Donation:', bbp_get_reply_author_id() ) ;
    
    if (!empty($user_donation)) {
    echo '<p>' . $user_donation . '</p>';
    }
    }
    add_action('bbp_theme_after_reply_content', 'bbp_add_xprofile_field' );
  • You must be logged in to reply to this topic.
Skip to toolbar