Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can someone explain how to add tabs to the profile page?


  • Justin Frydman
    Participant

    @defunctlife

    Hi there,

    I would like to add a blog tab to my buddypress profile page which is just a custom template/loop from wordpress posts, but I’m having trouble trying to figure out the best way to add a tab.

    Could someone explain?

    Thank you

Viewing 4 replies - 26 through 29 (of 29 total)
  • 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’ ),


    mikegarlick
    Participant

    @mikegarlick

    @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


    modemlooper
    Moderator

    @modemlooper

    Please refrain from posting multiple times with same support issue. I’ve answered you in your previous post.

Viewing 4 replies - 26 through 29 (of 29 total)
  • The topic ‘Can someone explain how to add tabs to the profile page?’ is closed to new replies.
Skip to toolbar