Hi, This is regarding buddypress adding new tab to the member profile main nav and when is click direct user to the author posts www.mysite.com/Author/username/ default Wordpress author query string (/?author="id", where id is the user id number) to create and display a link to an author's page.
After researching and looking I have find this code that it kinder works, it creates a new custom tab and direct users to the new post but the URL is not what i'm looking for it creates member/username/mypost what I need is something like this www.mysite.com/Author/username/ I just don't understand how i can achieve this with this code below....
Adding buddypress Tab to the member profile[/i]
Code:
bp_core_new_nav_item(
array(
'name' => __('Messages', 'buddypress'),
'slug' => $bp->messages->slug,
'position' => 50,
'show_for_displayed_user' => false,
'screen_function' => 'messages_screen_inbox',
'default_subnav_slug' => 'inbox',
'item_css_id' => $bp->messages->id
)
);
I have also find this code on wordpress author ID, I am not so sure how to implement it.