Well, I just yesterday installed 1.0.8 version.
If you are not using a child theme then it might be a plugin (maybe a SEO one) that does something to your title. Check/see and maybe disable that option.
I have installed WordPress SEO by Yoast and there changed the title like %%sitename%%
Well, I’m not sure. I’ve disabled all plugins and still “the title is twice” 🙁
a few moments ago it was one time. what did you do?
I DISABLED WordPress SEO by Yoast plugin. When it works, it’s ok. If I turn off there is again this error “twice title”
Then don’t disable WordPress SEO… The theme doesn’t do anything to the title, it uses the default WP title tag. Try and see if it does the same with other themes, like twentyfifteen.
With Twenty Fifteen not problems, i’ve checked
I’ve tried disable all plugins and install again 1.0.8 version from Word Press site. And there is still mistake :(( Okey, I gonna use SEO by Yoast plugin to fix this problem/
Try removing this from functions.php:
/* Title - Backwards compatibility
/* ------------------------------------ */
if ( ! function_exists( '_wp_render_title_tag' ) ) {
function ac_render_title() {
?>
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php
}
add_action( 'wp_head', 'ac_render_title' );
}
even though I don’t think it will help.
I did a little digging and it’s my fault. I forgot to remove some lines from functions.php. You can open that file and remove the following:
/* Title formatting
/* ------------------------------------ */
if ( ! function_exists( 'ac_wp_title' ) ) {
function ac_wp_title( $title, $sep ) {
global $paged, $page;
if ( is_feed() ) {
return $title;
}
// Add the site name.
$title .= get_bloginfo( 'name' );
// Add the site description for the home/front page.
$site_description = get_bloginfo( 'description', 'display' );
if ( $site_description && ( is_home() || is_front_page() ) ) {
$title = "$title $sep $site_description";
}
// Add a page number if necessary.
if ( $paged >= 2 || $page >= 2 ) {
$title = "$title $sep " . sprintf( __( 'Page %s', 'acosmin' ), max( $paged, $page ) );
}
return $title;
}
}
add_filter( 'wp_title', 'ac_wp_title', 10, 2 );
Sorry for any problems caused! I will push an update as soon as possible.
Also, thank you for pointing out the issue!
WOW. Finally It works. Thanks a lot :)))