Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Buddypress Profile Linking to Author

  • @adonismoet1608

    Participant

    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)
  • @espellcaste

    Moderator

    A look at the Codex don’t hurt. Check out this article, https://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! =)

    @adonismoet1608

    Participant

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

    @espellcaste

    Moderator

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

    @adonismoet1608

    Participant

    echo bp_core_get_userlink( bp_loggedin_user_id(), $no_anchor = false, $

    is this all i need ?

    @adonismoet1608

    Participant

    putting it anywhere surely wasnt a good idea lol

    @espellcaste

    Moderator

    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.

    @adonismoet1608

    Participant

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

    @espellcaste

    Moderator

    I agree! =)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Buddypress Profile Linking to Author’ is closed to new replies.
Skip to toolbar