Support » Plugin: Yoast SEO » [Plugin: WordPress SEO] Title problem for posts in TwentyTen

  • Resolved Marcel Brinkkemper


    When I put in an SEO title for my posts, the last word of the title is joined together with the site name like:
    The title of my postSitename.
    I’m using the Twentyten theme in WordPress 3.0.1

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Joost de Valk


    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.

    Hi Joost,
    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.

    Another nasty bug: When I delete the seo title in a page, some javascript puts it back in. Using Firefox 3.6.12

    Plugin Author Joost de Valk


    Hey, any chance I could log into your site and test the sitename display?

    The javascript acting that way is going out, I’ve revised how it works a bit to make it simpler for everyone to use.

    Hi Joost,
    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.
    Plugin Author Joost de Valk


    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.

    Plugin Author Joost de Valk


    No, in that case you’ll have to change the theme and remove the hardcoded bloginfo and all other crap that twentyten has there.

    That’s what I’ll do…
    Er zit niet anders op…

    Plugin Author Joost de Valk


    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 is

    » 2000 | Beee v0.3 ? instead of without » ?

    Hi Joost,
    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.

    Plugin Author Joost de Valk


    That’s why there’s a force rewrite title function in there, it’ll really force rewrite it by using an output buffer. It’s slower than changing your header.php file, but if you don’t know how to do it, it’s the better solution.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘[Plugin: WordPress SEO] Title problem for posts in TwentyTen’ is closed to new replies.