Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change xprofile custom field in bbpress for a url or icon


  • u_Oi
    Participant

    @arutam

    Hi,

    I am using this code:

    //coffee
    function bbp_add_xprofile_field() { 
      $user_coffee = xprofile_get_field_data( 'Coffee', bbp_get_reply_author_id() ) ;
      if (strlen($user_coffee) > 0 ) 
       echo 'Coffee: ' . $user_coffee;
    }
    add_action( 'bbp_theme_after_reply_author_details', 'bbp_add_xprofile_field' );

    To show xprofile buddypress custom information (coffee) below User Avatar in bbPress, the field contain a lot information so It looks terrible in bbPress… I would like to reemplace that information for just an icon or word linked to the avatar profile…

    How can I add the html code to convert $user_coffe in link to the profile?

    Thanks!

  • You must be logged in to reply to this topic.
Skip to toolbar