Skip to:
Content
Pages
Categories
Search
Top
Bottom

adding links to the profile menu

  • @mmoore5553

    Participant

    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 3 replies - 1 through 3 (of 3 total)
  • @mmoore5553

    Participant

    i have tried parent_url but that did not work either. Not sure what I am missing.

    @colabsadmin

    Participant

    I’m pretty sure you have to call a function to do that using ‘screen_function’ then a wp_redirect in the function.

    @mmoore5553

    Participant

    Do you have any kind of examples ? I figured something like that but just a fast redirect link to it would work. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding links to the profile menu’ is closed to new replies.
Skip to toolbar