Skip to:
Content
Pages
Categories
Search
Top
Bottom

plz help me make pages as wordpress tabs and sub tabs


  • DANTOSSO
    Participant

    @dantosso

    hello everybody

    i’m tryying to make some pages of my website as tabs and subtabs of buddypress ,, i added some code to the functions.php of my theme and the tabs appeared but when i click it it goes to 404 page, and when i look at the url it gives a different one ,,,,,,,

    [mod: link removed] http localhost doesn’t work on internet!
    here is the code i’m using :

    add_action('bp_setup_nav', 'create_tab1', 301 );
    function create_tab1() {
       global $bp;
       bp_core_new_nav_item(
    	array(
            'name' => 'test',
            'slug' => 'test', 
            'position' => 11, 
            'default_subnav_slug' => 'test', // We add this submenu item below 
            'show_for_displayed_user' => false,
            )
       );
    }

    thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)

  • shanebp
    Moderator

    @shanebp

    Please use the code button when sharing code.

    bp_setup_nav is used to added tabs & subtabs to member pages – is that what you want?


    DANTOSSO
    Participant

    @dantosso

    thanks for reply ,, i’ll use the code next time and sorry for my ignorence

    well the pages i want to add will be dynamic and specific to each member ( just like the activity tab for user1 differs from activity of user2 ) so i don’t know what to answer you because i don’t know what should i do

    thanks again for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘plz help me make pages as wordpress tabs and sub tabs’ is closed to new replies.
Skip to toolbar