The code did not show up! trying again.
function add_profile_link_to_nav($items) {
if ( is_user_logged_in() )
return $items .
'<li><a href="activity/just-me/">My Wall</a>
<ul>
<li><a href="activity/friends/">My Friends Activities</a></li>
<li> <a href="profile/edit/group/1">Edit My Profile</a></li>
</ul>
</li>';
}
add_filter('wp_nav_menu_items','add_profile_link_to_nav', 10, 2);
Ok how do you add code? I though putting the code between the CODE tags would work
Try adding code tags in Visual mode. Or better yet, paste code in pastebin.com and post the generated URL here. e.g.
<?php if ( is_user_logged_in() ) ?>