@mmoore5553
10 years, 8 months ago
This is what i have in my bp-custom.php
add_action('bp_setup_nav', 'mb_bp_profile_menu_posts', 301 ); function mb_bp_profile_menu_posts() { global $bp; bp_core_new_nav_item( array( 'name' => 'All Members', 'slug' => 'allmembers', 'position' => 60, //'default_subnav_slug' => 'published', // We add this submenu item below 'screen_function' => 'my_posts_screen_link' ) ); function my_posts_screen_link() { add_action( 'bp_template_title', 'my_posts_screen_title' ); add_action( 'bp_template_content', 'my_posts_screen_content' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } function my_posts_screen_title() { echo 'All Members'; } function my_posts_screen_content() { get_template_part( 'members/single/allmembers.php' ); //or you can put code here; only useful for short bits or echoing plain text } }
Do you have any kind of examples ? I figured something like that but just a fast redirect link to it would work. Thanks.
i have tried parent_url but that did not work either. Not sure what I am missing.