This method has stopped working. This is the code I was using:
`bp_core_new_subnav_item( array(
‘name’ => ‘News’,
‘slug’ => ‘news’,
‘parent_url’ => $bp->root_domain .’/’. $bp->groups->slug . ‘/’. $bp->current_item .’/’,
‘parent_slug’ => $bp->groups->slug,
‘screen_function’ => ‘client_news_page’,
‘position’ => 21) );
`
I have read that it is probably something to do with how the urls and slugs are fetched. Has anyone fixed this?
Thanks
i have the same issue as Té Baybute
maybe i am not calling the right hook, but i cannot see the sub-navigation. also, i would like to create a sub-navigation tab under the “Profile”, next to Public, Edit, Change Avatar.
Edit: i manage to add the slugs directly as text:
‘parent_slug’ => ‘profile’,
‘parent_url’ => trailingslashit( bp_loggedin_user_domain() . ‘profile’ ),
@modemlooper I used your code above to get the tab working named ‘Test’ and its working fine. Thanks for that. I used it in a child theme custom functions file i have there. Is there any way I can have a separate file that contains the content for that section( currently “weeee content” ).
Thanks in advance
Please refrain from posting multiple times with same support issue. I’ve answered you in your previous post.