Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 22,699
- How-to & Troubleshooting
- 124,868
- Creating & Extending
- 25,224
- Requests & Feedback
- 9,169
- Third Party Plugins
- 9,564
- Showcase
- 3,306
- Ideas
- 1,255
- Miscellaneous
- 8,438
-
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>
instead of
($bp[’loggedin_userid’])
we should be using
($bp->loggedin_user->id);
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS