Reply To: how display content in submenu?
Delete your call to
bp_core_load_template( apply_filters( 'bp_core_template_plugin','members/single/swap' ) );
Use this call
function my_groups_page_function_to_show_screen_content() {
bp_get_template_part('members/single/swap');
}
Add these functions:
function luisa_register_template_location() {
return 'path to your templates' . '/templates/';
}
function luisa_template_start() {
if( function_exists( 'bp_register_template_stack' ) )
bp_register_template_stack( 'luisa_register_template_location' );
}
add_action( 'bp_init', 'luisa_template_start' );