Re: Problem with Title Tag in Category and Tag
@mikey3d did you follow point 2 that Roger explained above? there is no ‘Patch’ as such only what we( the community) can run up given the spare time. tbh this is something I would have not been too concerned with and awaited a core patch in a future release (I have suggested a core patch to address the problem, but that will probably be applied in 1.3 – too late to get in to 1.2.6)
If you want you can try this quick fix I’ve run up by exacting the relevant section from the core function and applying it as a filter in functions.php – it’s not widely tested and slightly hackish but appears to work:
`function bp_page_title_blog_category_remove_hyphens( $title ) {
global $bp, $wp_query;
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’ );
}
if ( bp_is_blog_page() && is_category() )
$title = __( $blog_title . ‘| Blog | Categories | ‘ . ucwords( $wp_query->query_vars ), ‘buddypress’ );
$title = str_replace(‘-‘, ‘ ‘, $title);
return $title;
}
add_filter( ‘bp_page_title’, ‘bp_page_title_blog_category_remove_hyphens’ );
`
Let us know if that works for you?