WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
Issue With Duplicate Post Titles {Help} (39 posts)

  1. cdferguson
    Member
    Posted 3 years ago #

    I am running the latest version of WordPress with the latest version of the plugin on a Wootheme with the most recent framework.

    I installed yesterday and have triple checked all settings for accuracy.

    My post SEO Titles are all changing to the title of an article I wrote a week ago, site wide. When I remove the check from force rewrite titles the article titles change to the SEO Title+Homepage title (but appears to be pulling homepage title from the wordpress settings) no space between SEO Title and Home Page Title.

    I tried modifying the header.php and no luck so I changed it back and clicked force rewrite titles again. Uncheck box, I get the results above. Check it, I get the same title on every post.

    Is this a weird Wootheme conflict or any ideas on how to correct this?

    I would love to continue using the plugin and love it but cannot continue messing with it. If anyone has any suggestions please let me know or I would gladly hire someone that can fix it if that is an option.

  2. Joost de Valk
    Member
    Plugin Author

    Posted 3 years ago #

    Hmmpf, can't say i know what's going on here. Any chance i could get access to that install to have a look?

  3. cdferguson
    Member
    Posted 3 years ago #

    Yes Joost. I sent you an email through your website with the relevant information.

  4. DJSParky
    Member
    Posted 3 years ago #

    hmm, I have a similar problem.
    putting in the site title duplicates it on the page, so when viewing the header it looks like the following SEOtitleSITEtitle | site tagline

    The SEO title should be hidden like the meta description

    I got around it by adding a blank space in the SEO title box, but not the greatest way around

  5. DJSParky
    Member
    Posted 3 years ago #

    ahh
    Force rewrite

    I get it
    Sorted

  6. cdferguson
    Member
    Posted 3 years ago #

    Joost, Did you get my login info?

  7. travisneel
    Member
    Posted 3 years ago #

    I am having the same problem. Duplicate titles on every page. If I remove the Sitename and Site Description from the WP Settings page, it seems to generate the title correctly. But then, anywhere that pulls in the bloginfo('sitename') variable appears empty.

  8. jwind
    Member
    Posted 3 years ago #

    I like this plugin a lot and so do many of my clients. I am having all sorts of duplicate title issues as well even with the correct code int he title. Any progress?

  9. jwind
    Member
    Posted 3 years ago #

    I'll be a little more detailed here...
    Here is the site I am having issues with:
    http://www.caribouhouse.com

    i've replaced the title code with what yoast suggests. I've since changed it a bit with:

    <?php if(is_home()) { echo bloginfo("name"); echo " | "; echo bloginfo("description"); } else { echo wp_title('|'); } ?>

    I'm no PHP expert, but to my knowlege that just calls the site title and description on the home page and then leaves the rest to yoast.

    The home page works fine, as do all of the other pages except for one page:
    http://caribouhouse.com/the-only-location/

    This is the only page that my client has rewritten the SEO title. The title appears fine, but it runs right into the site title. What am I doing wrong?

  10. travisneel
    Member
    Posted 3 years ago #

    Anybody have any ideas to resolve this? I'm experiencing it on multiple sites. Force rewrite doesn't seem to help. I either get titles duplicated (like SitenameSitename) or I get every page on my site with the same title.

  11. jwind
    Member
    Posted 3 years ago #

    I have to believe that others are having these same issues? I have this plugin running on 4 or so WP installations, all of which have had this problem. I was about ready to can this plugin all together, but I have a couple clients that really like the title rewriting preview that shows you the google preview. I have to admit, that is a nice touch.

    At anyrate, I've remedied the situation with the following code snippet:

    $site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " $site_description";
    	wp_title('');

    Removing the sites name and description is just not cool. this should solve it. give it a go.

  12. gingerlyspicy
    Member
    Posted 3 years ago #

    hello..i installed this plugin and followed the steps in this tutorial (http://www.wpbeginner.com/plugins/ho...ugin-by-yoast/). It seems to be working ok but i m facing one major bug. For posts, there is no prob, but for pages it seems to be displaying only one title ..yeah one title for all pages and that title is actually the title of a post……

    see the following pages
    http://www.crack-entrance.com/entrance-exams/iit-jee/
    http://www.crack-entrance.com/entrance-exams/aieee/
    http://www.crack-entrance.com/home/a...s-till-date-2/

    plz help guys :(

  13. psychonikeo
    Member
    Posted 3 years ago #

    I'm having this problem too.

    @Jwind Where exactly should I put that code?

  14. psychonikeo
    Member
    Posted 3 years ago #

    Ah fixed.. I had force rewrite turned on and also rewrote my code. That seemed to be the problem in this case

  15. John Majewski
    Member
    Posted 3 years ago #

    I had the same problem. Fixed it by tossing this into my header.php file

    <title>
    <?php
    	if ( is_home() )
    	{
    		echo "John Majewski - Blog";
    	}
    	else
    	{
    		wp_title('');
    	}
    ?>
    </title>
  16. iccgames
    Member
    Posted 3 years ago #

    I'm having the same issue after updating the wp seo.

    I try disabling it and then it works. But I really wants to continue with this plugin.

    Please can anyone help me.
    Email - support[at]iccgames.com

    I'll return the favour

  17. rbbeltran
    Member
    Posted 3 years ago #

    Guys im having same problem. A quick solution is to add this to header.php
    <title>
    <?php
    if(is_home() || is_front_page()) { echo bloginfo("name"); echo " | "; echo bloginfo("description"); }
    else
    { echo wp_title('|', true, 'right'); } ?>
    </title>

    Im using this plugin in my site: http://www.downloadformph.com/

  18. shotwell
    Member
    Posted 3 years ago #

    I forced rewrite of titles and resolved the issue. Go to Yoast WordPress SEO: Titles and check the box to [Force rewrite titles].

  19. jwind
    Member
    Posted 3 years ago #

    @iccgames, and @rbbeltran and my solution are all essentially the same thing. They all just say if it's the home page OR front page print the blog title and description. Otherwise, the page name and blog name. WHat i don't understand is is no matter what chacter i pass to the wp_title( *****HERE----->'|', true, 'right');
    It prints twice.

    At some pint, when I have time, i'm going to take a closer look.

  20. walejames
    Member
    Posted 3 years ago #

    if you put include <title><?php wp_title(''); ?></title> in the title section header of your header.php, you need to uncheck the force rewrite titles. That worked for me at http://businessnews.com.ng/

  21. muchbett
    Member
    Posted 3 years ago #

    Well this is doing my head in. I have just started 2 new sites. Both using the same theme. One works fine with the SEO yoast plugin while the other is experiencing the problems stated above.

    See http://www.cutekitties.net

    I appreciate the attempted answers above but is anyone in a position to now give a step by step answer to resolve this issue. That is to say if new code need to be added, where exactly must it be added and does it need to replace anything.

    I've looked hard but can't see what the difference is between my 2 sites that makes one work but not the other.

    Cheers,

    Jamie

  22. Torben Schmidt Bendixen
    Member
    Posted 3 years ago #

    I have found out that not all themes have their meta data in the file: header.php

    So you have to find the file where the meta data is, and then change your title meta to: <title><?php wp_title(''); ?></title>

    That have worked for me in several cases.

  23. muchbett
    Member
    Posted 3 years ago #

    I have no idea what I was doing wrong before but I have sussed it now.

    Replace <title>< whatever you have ></title>

    from headerphp and replace with

    <title><?php wp_title(''); ?></title>

    Then untick "Force rewrite titles" in Yoast WordPress SEO: Titles if you had previously ticked it.

  24. jpwot
    Member
    Posted 3 years ago #

    I have tried all the suggestions in this thread but still get a duplicate site title stuck on the end of every <title>.

    I have edited my header file to
    <title><?php wp_title(''); ?></title>
    then unchecked 'Force rewrite titles', but nothing changes.

    I'm using a child theme, could this have anything to with it?

  25. lindamoran57
    Member
    Posted 3 years ago #

    It's now July and the problem still exists. I have to assume that the Yoast plug-in is not getting the attention it needs, so I've abandoned it.

    As soon as I deactivated it, my troubles went away.

  26. jpwot
    Member
    Posted 3 years ago #

    The only way around this problem I could find was to remove my site title from Settings>General.
    Not ideal but after trying out a few others I came back to this SEO plugin for its ease-of-use.
    Here's hoping this minor problem can get fixed soon.

    Btw, I also saw duplicate site titles being added with All in One SEO Pack, so maybe something is up with my theme?
    I'm using WP 3.2 and a theme I made using Starkers, which itself is based on TwentyTen.

  27. travisneel
    Member
    Posted 3 years ago #

    From what I can remember, I solved this by looking into the functions.php for the theme. I know I experienced this with Starkers and TwentyTen (which both have functions that do something with wp_title). I believe this happened with a few themes from ThemeForest as well. Removing whatever was in functions.php that was modifying wp_title seemed to fix it for me.

  28. jpwot
    Member
    Posted 3 years ago #

    @travisneel - Thanks ever so much. As you suggested, the culprit was the function twentyten_filter_wp_title in Starkers' functions.php.
    I commented it out and my titles are now working great.

    Seems funny that a function from TwentyTen, the default theme should be causing the problem :-/ Oh well... Thanks again for your help!

  29. edson_bsx
    Member
    Posted 3 years ago #

    @travisneel - Another thank you! Been bugging me for a while. Also worked wonders for me.

    @jpwot - I agree, that does seem odd. Oh well, it's fixed now! =)

  30. The Mexykan
    Member
    Posted 2 years ago #

    I've still got the same problem.
    In the dashboard it all works fine. No dupe titles, site descriptions,etc.
    But on all other pages and posts there are dupes in the titles, no spacing between.
    Really screws up the SEO too, as now search engines are seeing repeated titles and site descriptions.

    I've had no luck.
    Can anyone give some advice that will help me resolve this issue?
    I sure appreciate any help that can help!

    I'm using wp 2010 latest update and sub-theme weaver

    Thanks in advance for any useful help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic