5 years, 3 months ago
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
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! =)
sorry, I am very noob to this. could you possibly provide me with the code i should use and where to put it
You can take the code from the link that I provided above, the place where you’re gonna put it is up to you. =)
echo bp_core_get_userlink( bp_loggedin_user_id(), $no_anchor = false, $
is this all i need ?
putting it anywhere surely wasnt a good idea lol
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>
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.
yes, i dont know where i need it. Maybe i just need to hire someone
I agree! =)
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service