9 years, 2 months ago
Prior to version 1.0 this link would pull the current logged in users url and direct them to their public profile.
a href=\"<?php global $bp; echo bp_core_get_userurl($bp[\'loggedin_userid\']) ?>profile/public\"
Unfortunately now this code doesn\’t work. Does anyone know how to adapt this link to version 1.0+?
I would loooove to get the answer too !
Thx to help us …
$user_id = the id of the person you want to get;
There is also bp_core_get_userlink which works in similar fashion but has more parameters. Open bp-core.php and check it out, it’s fully documented.
9 years, 1 month ago
I have figured out the correct way to display the logged in user id.
<a href="<?php global $bp; echo bp_core_get_userurl($bp->loggedin_user->id); ?>activity/my-friends">Your Friends Activity</a>
we should be using
See also: WordPress.org •
Follow BuddyPress on Twitter •
Contact Us •
Terms of Service