Re: Theme not showing correct template file
I just ran a little test and bp is using single.php. In the functions.php file for the home theme there is a fn called bp_show_home_blog() which is where it detects what to load. Yours should look like this:
function bp_show_home_blog() {
global $bp, $query_string;
if ( $bp->current_component == HOME_BLOG_SLUG ) {
$pos = strpos( $query_string, ‘pagename=’ . HOME_BLOG_SLUG );
if ( $pos !== false )
$query_string = preg_replace( ‘/pagename=’ . HOME_BLOG_SLUG . ‘/’, ”, $query_string );
query_posts($query_string);
$single_check = strpos( $query_string, ‘&name=’ );
if ( $single_check === false )
bp_core_load_template( ‘index’, true );
else
bp_core_load_template( ‘single’, true );
}
}
add_action( ‘wp’, ‘bp_show_home_blog’, 2 );