Login button on top rrr
-
SO, I have a page that I am working with this wonderful plugin. So far so good. The owner wants the login page that is working with buddypress to go to a dashboard page inside buddypress. I make it work, but the rest of the menu disappear.
This is the code:
// Filter wp_nav_menu() to add profile link add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); function my_nav_menu_profile_link($menu) { if (!is_user_logged_in()) { return $menu; } else { if ($menu = 78) { $profilelink = '<li><a href="' . bp_loggedin_user_domain( '/dashboard' ) . '">' . __('My Profile') . '</a></li>'; $menu = $menu . $profilelink; return $menu; } else { return $menu; } } }
I may need your eyes, and wits to help me please!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Login button on top rrr’ is closed to new replies.