I found issues with Custom Post Types and page titles with the current Buddypress. Page Titles wouldnt display correctly so I needed to create a custom function.
‘function bpcustom_get_page_title() {
global $bp, $post, $wp_query, $current_blog;
if ( is_front_page() || ( is_home() && bp_is_page( ‘home’ ) ) ) {
$title = __( ‘Home’, ‘buddypress’ );
} else if ( bp_is_blog_page() ) {
$pt_label = ‘Blog’;
if($post->post_type != ‘post’){
$pt = get_post_type_object($post->post_type);
$pt_label = $pt->labels->name;
}
if ( is_single() ) {
$title = __( $pt_label . ‘ | ‘ . $post->post_title, ‘buddypress’ );
} else if ( is_category() ) {
$title = __( $pt_label . ‘ | Categories | ‘ . ucwords( $wp_query->query_vars ), ‘buddypress’ );
} else if ( is_tag() ) {
$title = __( $pt_label . ‘ | Tags | ‘ . ucwords( $wp_query->query_vars ), ‘buddypress’ );
} else if ( is_page() ){
$title = $post->post_title;
} else
$title = __( $pt_label, ‘buddypress’ );
} else if ( !empty( $bp->displayed_user->fullname ) ) {
$title = strip_tags( $bp->displayed_user->fullname . ‘ | ‘ . ucwords( $bp->current_component ) );
} else if ( $bp->is_single_item ) {
$title = ucwords( $bp->current_component ) . ‘ | ‘ . $bp->bp_options_title . ‘ | ‘ . $bp->bp_options_nav[$bp->current_component][$bp->current_action];
} else if ( $bp->is_directory ) {
if ( !$bp->current_component )
$title = sprintf( __( ‘%s’, ‘buddypress’ ), ucwords( BP_MEMBERS_SLUG ) );
else
$title = sprintf( __( ‘%s’, ‘buddypress’ ), ucwords( $bp->current_component ) );
} else if ( bp_is_register_page() ) {
$title = __( ‘Create an Account’, ‘buddypress’ );
} else if ( bp_is_activation_page() ) {
$title = __( ‘Activate your Account’, ‘buddypress’ );
} else if ( bp_is_group_create() ) {
$title = __( ‘Create a Group’, ‘buddypress’ );
} else if ( bp_is_create_blog() ) {
$title = __( ‘Create a Blog’, ‘buddypress’ );
}
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’ );
}
return apply_filters( ‘bp_page_title’, $blog_title . ‘ | ‘ . esc_attr( $title ), esc_attr( $title ) );
}’