Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Creating custom link in menu to profile page


r-a-y
Keymaster

@r-a-y

Currently, this isn’t possible to do in the dashboard, you have to manually add some template tags into your theme.

Template tags can be found in the /plugins/buddypress/ directory. Look for files suffixed with -templatetags.php.

I’ll get you started with a link to the logged in user’s profile page.

Add this to your theme’s functions.php:
`
function my_profile_link() {
global $bp;

if ( $bp->loggedin_user->id )
echo ‘loggedin_user->domain . $bp->profile->slug . ‘/”>Profile‘;
}
`

Then add the following in your template:
`
if ( function_exists( ‘my_profile_link’ ) )
my_profile_link();
`

The rest is up to you!

Skip to toolbar