• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Help with Buddypress adding new author Tab Link

thugzanime

New member
Feb 27, 2019
23
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

 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock