Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress slug issues


  • widlak
    Participant

    @widlak

    Hi

    i created a bp-custom.php and regrouped the menu items fine. But now i am trying to add a link to go to /site/members. It list all the members. When i add it though it goes under the profile I am viewing. I am redirecting to a wordpress page if that helps.

    example with it added

    http://website.com/log-in/members/username/members/

    i want it to go just here

    http://website.com/log-in/members/

    I would love to learn how to just put a url and no slug but whatever works.

    Here is the function

    function mb_bp_profile_menu_posts() {
    global $bp;
    bp_core_new_nav_item(
    array(
    'name' => 'Members',
    'slug' => 'members',
    'position' => 60,

    )
    );
    }

Viewing 1 replies (of 1 total)

  • danbp
    Moderator

    @danbp

    Try to add something like this into the array

    'link' => 'http://website.com/log-in/members/',

    Reference of bp_core_new_nav_item function is in bp-core-buddybar.php

Viewing 1 replies (of 1 total)
  • The topic ‘Buddypress slug issues’ is closed to new replies.
Skip to toolbar