• Hi Everyone,

    I’m assuming this is relatively easy for all of you… I’m still a little newbish… What I’m trying to do is I have a dynamic profile page for users to manage their profile information on the front end of the website. The way I want to identify it in navigation is by having the navigation label represent the logged in user’s first name. I’ve searched all around and surprised I didn’t find anyone else had done this.

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The proper solution is theme dependent, but this should work for most. You can usually alter anything in the menu by hooking into the ‘wp_nav_menu’ filter. Use PHP string functions to locate the usual page name label in the menu and change it to the current user’s name.

    See the Plugin API for info on hooking into filters. Hooks work equally well from Themes, or Child Themes which you should use to contain your custom theme modifications. You can get user info with get_currentuserinfo().

Viewing 1 replies (of 1 total)
  • The topic ‘Changing a navigation label to user's first name?’ is closed to new replies.