Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show User Profile Information


  • Darth
    Participant

    @darthtraders

    I am trying to figure out how to display User information such as Twitter, Website, etc in the bbPress user profile. Is this possible?

    I’ve searched Google and cannot seem to find a solution. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

  • nicmare
    Participant

    @nicmare

    sure. just add the following code to your theme’s functions.php:

    function add_extra_contactmethod( $contactmethods ) {
        // Add new ones
        $contactmethods['twitter'] = 'Twitter';
        $contactmethods['facebook'] = 'Facebook';
        $contactmethods['googleplus'] = 'Google Plus';
        $contactmethods['youtube'] = 'Youtube Kanal';
    
        // remove unwanted
        unset($contactmethods['aim']);
        unset($contactmethods['jabber']);
        unset($contactmethods['yim']);
    
        return $contactmethods;
    }
    add_filter('user_contactmethods', 'add_extra_contactmethod');

    this removes “aim, jabber and yim” but adds twitter, facebook, yt and googleplus


    Darth
    Participant

    @darthtraders

    Thank you very much!

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