Help with Buddypress adding new author Tab Link

  • Welcome to Babiato Forum! All Resources are 100% clean and Safe to Use

thugzanime

New member
Feb 27, 2019
25
7
3
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/

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
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.
https://developer.wordpress.org/reference/functions/the_author_id/

Please Help ME

 

Forum statistics

Threads
73,530
Messages
953,616
Members
282,133
Latest member
Harry747568

About us

  • Babiato Forum - The webmaster community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day, updating Daily resource to make sure our community is one of the best.

Quick Navigation

User Menu