Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Buddypress Profile Linking to Author


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

  • Renato Alves
    Moderator

    @espellcaste

    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

    @adonismoet1608

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


    Renato Alves
    Moderator

    @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. =)


    Adonismoet1608
    Participant

    @adonismoet1608

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

    is this all i need ?


    Adonismoet1608
    Participant

    @adonismoet1608

    putting it anywhere surely wasnt a good idea lol


    Renato Alves
    Moderator

    @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.


    Adonismoet1608
    Participant

    @adonismoet1608

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


    Renato Alves
    Moderator

    @espellcaste

    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