WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


i want it to go just here


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;
    'name' => 'Members',
    'slug' => 'members', 
    'position' => 60, 

share|improve this question

closed as off-topic by kaiser Jul 30 '14 at 16:21

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

I have tried parent_url and that did not work at all. – matthew moore Mar 14 '14 at 20:42
Anyone have any ideas on how to do this ? – matthew moore Mar 16 '14 at 21:06
up vote 0 down vote accepted

I know this is not the correct way and you should always edit the template but i just edited the core buddy press navigation function. You will see below the google link I added.

 function bp_get_displayed_user_nav() {
global $bp;

foreach ( (array) $bp->bp_nav as $user_nav_item ) {
    if ( empty( $user_nav_item['show_for_displayed_user'] ) && !bp_is_my_profile() )

    $selected = '';
    if ( bp_is_current_component( $user_nav_item['slug'] ) ) {
        $selected = ' class="current selected"';

    if ( bp_loggedin_user_domain() ) {
        $link = str_replace( bp_loggedin_user_domain(), bp_displayed_user_domain(), $user_nav_item['link'] );
    } else {
        $link = trailingslashit( bp_displayed_user_domain() . $user_nav_item['link'] );

    echo apply_filters_ref_array( 'bp_get_displayed_user_nav_' . $user_nav_item['css_id'], array( '<li id="' . $user_nav_item['css_id'] . '-personal-li" ' . $selected . '><a id="user-' . $user_nav_item['css_id'] . '" href="' . $link . '">' . $user_nav_item['name'] . '</a></li>', &$user_nav_item ) );

echo "<li id=\"css-personal-li\"><a href='http://www.google.com'>Google</a></li>"; 


share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.