Re: Problem with Title Tag in Category and Tag
here’s a quick adaptation then to give you all words uppercase, as for the order things are written in if you look at the first instance of $title you will see how the various parts are constructed, it’s a string so follows the order you read in, have a play around to get the order of things the way you want. if you want specific characters then you need to look up ‘html character entity codes’ to get things like ‘ » ‘
`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 | ‘ . $wp_query->query_vars , ‘buddypress’ );
$title = str_replace(‘-‘, ‘ ‘, $title);
$title = ucwords($title);
return $title;
}
add_filter( ‘bp_page_title’, ‘bp_page_title_blog_category_remove_hyphens’ );`