Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Getting Started with Skeleton Component 1.4

@designodyssey,

I just added these lines to my bp-example-core.php:

function bp_example_setup_root_component() {

/* Register ‘example’ as a root component */

bp_core_add_root_component( BP_EXAMPLE_SLUG );

}

add_action( ‘wp’, ‘bp_example_setup_root_component’, 2 );

function bp_example_directory_setup() {

global $bp;

if ( $bp->current_component == $bp->example->slug && empty( $bp->current_action ) && empty( $bp->current_item ) ) {

do_action( ‘bp_example_directory_setup’ );

bp_core_load_template( apply_filters( ‘bp_example_template_index’, ‘example/index’ ) );

}

}

add_action( ‘wp’, ‘bp_example_directory_setup’, 2 );

That worked for me.

Skip to toolbar