Skip to:
Content
Pages
Categories
Search
Top
Bottom

New comment box is missing in custom subnav page


  • merpo
    Participant

    @merpo

    Hello! I’m having a hard time finding a solution to this issue. When I create a subnav tab, the new post/comment box is missing. Any help is appreciated!

    function buddypress_tab() {
        global $bp;
        $parent_slug = 'activity';
        
        //Add 'all activity' subnav item    
        bp_core_new_subnav_item( array( 
            'name'            => __( 'All Activity'), 
            'slug'            => 'all_activity', 
            'parent_url'      => $bp->loggedin_user->domain . $parent_slug.'/', 
            'parent_slug'     => $parent_slug, 
            'screen_function' => 'buddypress_all_activity',
            'position'        => 10
        ) );
    }
    add_action( 'bp_setup_nav', 'buddypress_tab' );
    
    function buddypress_all_activity () {
        add_action( 'bp_template_title', 'buddypress_all_activity_title' );
        add_action( 'bp_template_content', 'buddypress_all_activity_content' );
        bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    }

    working
    notworking

    Apparently I don’t know how to attach images.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar