Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to change navigation order in profile menu


  • 9087877
    Inactive

    Software used: WordPress 3.4.1 and BuddyPress 1.6

    I picked up the below code from the forum to make the default tab selected the profile tab and to also change the order of the items in the profile navigation, I added it to my child themes functions.php. It works except when you go to edit profile it spits out this error:

    Fatal error: Cannot access empty property in C:xampphtdocswordpresswp-contentpluginsbuddypressbp-corebp-core-template.php on line 787

    Here is the code I used:

    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); /* makes the default tab selected the profile tab */
    /* Changes profile nav order */
    function bbg_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav = 10;
    $bp->bp_nav = 20;
    $bp->bp_nav = 30;
    $bp->bp_nav = 40;
    $bp->bp_nav = 50;
    $bp->bp_nav = 60;
    $bp->bp_nav = 70;
    }
    add_action( ‘bp_setup_nav’, ‘bbg_change_profile_tab_order’, 999 );
    /*end changes profile nav order*/

    Any ideas how to resolve this issue would be appreciated. Thanks in advanced!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to change navigation order in profile menu’ is closed to new replies.
Skip to toolbar