This has been resolved in 0.1.5, you can either change the title element in the code, or set the plugin to force rewrite the titles for you.
I’m still struggling with this one.
If I don’t use forced rewrites, the sitename is displayed without a space, Even when I put in a space as last character of the seo title. The last trick did work in previous versions.
If I do use forced rewrites, I would expect the plugin to use the title templates. My template is
%%title%% | %%sitename%%, but the sitename isn’t displayed.
Hey, any chance I could log into your site and test the sitename display?
A few things I have noticed in WPSEO_Frontend::title()
- The separator as defined in a theme ( $sep ) isn’t used.
- $title is trimmed. So the Blog name will be glued to the title, even when I put a space as last character of the seo-title.
No both are correct, because you have to define the entire title in the title settings, that you use them elsewhere is sort of your problem 🙂 Although in the fallback, I could set separator to $sep, that’s a fair point 🙂
This is what I get when I don’t put in Any title templates for posts:
The seo title in the post is: This is a test | My dear test weblog
The actual title display is : This is a test | My dear test weblogMarcel’s weblog
The original site name is appended without a separator.
When I use %%title% as template, same result.
Please leave a comment on the site, so I’ll have your e-mail and you could check it.
(fun) In TwentyTen’s header.php
bloginfo( 'name' );is hardcoded after
wp_title( '|', true, 'right' );
Force title rewrite works, but then I can’t use the title rewrites of my lazyest-gallery plugin.
No, in that case you’ll have to change the theme and remove the hardcoded
bloginfoand all other crap that twentyten has there.
Well it’s the only way of having best of both I think, and btw… Force title rewrite is SLOW compared to just having wp_title there…
Suggestion for a future release: filter for the seo title.
$title = apply_filters( 'wordpress_seo_title', $title, $sep, $seplocation, $postid ); return esc_html( stripslashes( $title ) );
I have added this to make your plugin work with Twentyten and Lazyest Gallery and I don’t have to hack plugins or themes after upgrading.
is that why my title on http://www.berryplasman.nl/2000/ is
» 2000 | Beee v0.3 ? instead of without » ?
I have checked a lot of themes, and most of them have something like
<?php bloginfo('name'); ?> <?php wp_title(); ?>in the header.
That means that having the blog name in the SEO template, It will show twice. May be something to consider. Not everybody knows how the hack the header.php file.
- The topic ‘[Plugin: WordPress SEO] Title problem for posts in TwentyTen’ is closed to new replies.