Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to create custom links\\get_userurl


Jeremy Winter
Participant

@jjwinter

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

Skip to toolbar