Skip to content
Docs

Using ##profile_link## to build a dynamic BuddyPress profile menu

Since KLEO 2.4 and with BuddyPress / bbPress installed you’re able to add a link to your profile with ##profile_link## using the ‘Custom Links’ menu option.

##profile_link## generates the path to your users profile, on most sites it will look something like this https://www.mydomain.com/members/username/

  • Go to Appearance > Menus > Select: desired menu

  • On the left side of the main page open the ‘Custom Link’ menu item

  • Enter your URL, this will be ##profile_link##

  • Whilst still in the URL field enter any secondary path information, for example ##profile_link##messages/ (Inbox) or ##profile_link##messages/compose/ (Inbox > Compose)

  • Enter your link text, click add to menu and save

Section titled “Examples of ##profile_link## for BuddyPress”

Activity (Default) - ##profile_link##activity/

Activity > Mentions - ##profile_link##activity/mentions/

Activity > Favorites - ##profile_link##activity/favorites/

Activity > Friends - ##profile_link##activity/friends/

Activity > Groups - ##profile_link##activity/groups/

Profile (View) - ##profile_link##profile/

Profile > Edit - ##profile_link##profile/edit/

Profile >  Change Avatar - ##profile_link##profile/change-avatar/

Profile > Change Cover Image - ##profile_link##profile/change-cover-image/

WooCommerce > Orders - ##profile_link##orders/

WooCommerce > Orders > Downloads - ##profile_link##orders/downloads/

Notifications (Unread) - ##profile_link##notifications/

Notifications > Read - ##profile_link##notifications/read/

Messages (Inbox) - ##profile_link##messages/

Messages > Starred - ##profile_link##messages/starred/

Messages > Sent - ##profile_link##messages/sentbox/

Messages > Compose - ##profile_link##messages/compose/

Messages > Notices (admin only) - ##profile_link##messages/notices/

Friends (Friendships) - ##profile_link##friends/

Friends > Requests - ##profile_link##friends/requests/

Groups (Memberships) - ##profile_link##groups/

Groups > Invitations - ##profile_link##groups/invites/

Forums (Topics Started) - ##profile_link##forums/

Forums > Replies Created - ##profile_link##forums/replies/

Forums > Favorites - ##profile_link##forums/favorites/

Forums > Subscribed Forums / Topics - ##profile_link##forums/subscriptions/

Settings (General) - ##profile_link##settings/

Settings > My Address (WooCommerce) - ##profile_link##settings/my-address/

Settings > Email Notifications - ##profile_link##settings/notifications/

Settings > Profile Visibility (Privacy) - ##profile_link##settings/profile/

What if I have a third party plugin that adds to profiles?

Section titled “What if I have a third party plugin that adds to profiles?”

You can still use ##profile_link## to generate menu items for third party plugins. All you need to do is take the remainder of the URL after the username. For example https://www.mydomain.com/members/username/**path/to/my/plugins/page/** will mean your menu item will look like this ##profile_link##path/to/my/plugins/page/