Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Profile Linking to Author

  • Avatar of Adonismoet1608
    Adonismoet1608
    Participant

    @adonismoet1608

    How to Link the Author Link to the buddypress user profile page

    I have seen Many topics on this and many questions on this but i still cannot figure it out/

    can someone please provide me with broad instruction on how to fix this

Viewing 8 replies - 1 through 8 (of 8 total)
  • Avatar of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    A look at the Codex don’t hurt. Check out this article, http://codex.buddypress.org/developer/function-examples/bp_core_get_userlink/, I’v used it recently to accomplish whay you’re trying to do.

    Hope it helps! =)

    Avatar of Adonismoet1608
    Adonismoet1608
    Participant

    @adonismoet1608

    sorry, I am very noob to this. could you possibly provide me with the code i should use and where to put it

    Avatar of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    You can take the code from the link that I provided above, the place where you’re gonna put it is up to you. =)

    Avatar of Adonismoet1608
    Adonismoet1608
    Participant

    @adonismoet1608

    <?php echo bp_core_get_userlink( bp_loggedin_user_id(), $no_anchor = false, $

    is this all i need ?

    Avatar of Adonismoet1608
    Adonismoet1608
    Participant

    @adonismoet1608

    putting it anywhere surely wasnt a good idea lol

    Avatar of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    Look, I’m gonna use my example. I used this code below:

    <div class="user right">
    <h3>Seja bem-vindo(a) <strong><?php echo bp_core_get_userlink( bp_loggedin_user_id(), $no_anchor = true, $just_link = false ); ?></strong></h3>
    <div class="right"><a href="<?php echo bp_core_get_userlink( bp_loggedin_user_id(), $no_anchor = false, $just_link = true ); ?>" title="<?php echo bp_core_get_userlink( bp_loggedin_user_id(), $no_anchor = true, $just_link = true ); ?>">Perfil</a> | <a href="<?php echo wp_logout_url( home_url() ); ?>" title="Sair">Sair</a></div>
    </div>

    To accomplish this effect. http://prntscr.com/2wppwy You can use as example, but is is not so different from the one form the Codex. You just need to choose the place where you need the user information on.

    Avatar of Adonismoet1608
    Adonismoet1608
    Participant

    @adonismoet1608

    yes, i dont know where i need it. Maybe i just need to hire someone

    Avatar of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    I agree! =)

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

You must be logged in to reply to this topic.