@merpo
4 years, 1 month ago
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' ) ); }
Apparently I don’t know how to attach images.
Lets see if this works:
merpo
@merpo
4 years, 1 month ago
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!
Apparently I don’t know how to attach images.