Website Construction

Help with Buddypress adding new author Tab Link

Submitted by thugzanime, , Thread ID: 157277

Thread Closed
thugzanime
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
2
Credits:
11
01-02-2020, 02:50 PM
This post was last modified: 01-02-2020, 02:54 PM by thugzanime
#1
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.

https://developer.wordpress.org/referenc...author_id/

Please Help ME



Users browsing this thread: 1 Guest(s)