How to add a profile link to navigation bar
Depending on how you have your navigation set up you could add the ‘Profile’ page to your nav menu using the WordPress menus interface. I have mine added to the ‘primary’ menu and it shows up Hope this helps.
The plugin works great. Please read the install instructions. You need to edit code in header.php.
@danpkraus You cannot add the member links via the wp admin menus because each user that logs in requires a different link.
Thanks for the instructions because i never look at that when I installed the plugin. I did put the code in the navigation part and nothing happen. what do you suggest?
@modemlooper have you tried the profile menu plugin with 1.6 yet? I dont know what Im doing wrong but its not working on 1.6.
@modemlooper sorry should have been more descriptive. I use one menu if a user is not logged in and another if they are, Like so:
if( !is_user_logged_in() ):
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ‘bp_dtheme_main_nav’ ) );
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘logged_in’ ) );
This works fine for me unless I just haven’t run into any issues yet. Just started using BP.
@modemlooper – I stand corrected, just noticed that the profile link is the only one I am not able to add. Just ignore my ignorance on this one. Sorry for any confusion. I literally just started with BP 2 days ago.
You can enhance the WordPress menu system to support dynamic links (including BuddyPress profile links) – there is a specific filter that you need to use.
Please take a look at this other recent forum thread, and the link on there which has all the details: http://buddypress.org/community/groups/creating-extending/forum/topic/how-to-create-new-dynamic-menu-including-bp-links/
You’ll need to be a competent PHP developer, but if so, it’s relatively straightforward
Cool, I’ll update plugin to use filter. When I created plugin I did not know about this filter
@Roger Coathup thanks for pointing out that filter. I’ll check it out and see how it all fits together.
Cool! What if I wanted to use the members tab and change the name to profile…. how would i change the permalink to link to http://www.mysite.com/members/username?
Go into the plugin file and edit term “profile”. Then remove the members tab linking to the member directory in the wordpress admin
Fixed plugin is live.
Could you add the option to select what you want to show in the drop down menu? In the screenshot it show a drop down menu with activity, forum, groups,etc but what if I dont offer forum and groups on my site at? Just a request, Im happy that the plugin is getting updated.
Thanks in advance!
If a component is deactivated then that drop down link is not shown.
Ok just making sure, I have updating the plugin but still no profile tab showing
Works fine for me on 3 different sites. Are you using a custom theme? I only test my plugins on BP-default
Can you activate BP-default to test? It may be a issue that the filter is not working on a child theme
Yea I tried the default and it still didnt show. Please help cause I need this done asap.
I really can’t say what it is if it doesn’t work in BP-default. I have it working as do others. There must have been an added a plugin or made a template file change that is blocking the plugin.
Hello. I need a buddypress expert to finish a web project for us. if interested, please contact me at hectorg(at)neuecreative.com. Thank you!
Actually I thought of something else. Are you using the wp admin menus to show a custom menu?
i deactivated all the plugins except buddypress and profile menu and still nothing.
You must be logged in to reply to this topic.