Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Comments won't display on main blog


3411446
Inactive

Good call. Your code fixes the problem. Here’s what I had in my functions? I wonder how it got screwed up?

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 );

}

}

Skip to toolbar