Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bp_page_title() doesn’t return correct title


Jon
Participant

@jonacb

I think the problem is on bp-core-templatetags.php around line 946.

if ( defined( ‘BP_ENABLE_MULTIBLOG’ ) ) {
$blog_title = get_blog_option( $current_blog->blog_id, ‘blogname’ );
} else {
$blog_title = get_blog_option( BP_ROOT_BLOG, ‘blogname’ );
// next 3 lines added
if ( is_page() ){
$title = $post->post_title;
}
}
Returns the page title a bit more correctly.
PS Blame the lack of formatting on the post – it all looked nice before I posted it!

Skip to toolbar