WordPress.org

Forums

WordPress SEO by Yoast
[resolved] Web page titles duplicated (7 posts)

  1. teknofilo
    Member
    Posted 2 years ago #

    I have no idea why my main page and all the entries have a duplicated title.

    For example, the title of my main page is 'Teknófilo | El blog de los amantes de la tecnologíaTeknófilo | El blog de los amantes de la tecnología'.

    A similar problem occurs with all the titles of my entries, which have the word 'Teknófilo' at the end with no separator.

    My website is teknofilo.com

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Gail
    Member
    Posted 2 years ago #

    WordPress version: 3.5
    WordPress SEO version: 1.3.4.3

    I am having a similar problem after having installed this plugin and have been having it for quite some time. In Google's search results, my site shows up with both the blog's site name and the site description repeating twice.

    I would love some help fixing this because, other than this problem, I am quite happy with WordPress SEO. Thanks!

    Here's my site: dappledthings.me

  3. Gail
    Member
    Posted 2 years ago #

    If it helps, my homepage title template is set as the default:

    %%sitename%% %%page%% %%sep%% %%sitedesc%%

  4. Gail
    Member
    Posted 2 years ago #

    And I have enabled "Force rewrite titles" on the SEO -> Titles settings page.

  5. teknofilo
    Member
    Posted 2 years ago #

    Can anyone help?

  6. Gail
    Member
    Posted 2 years ago #

    Unfortunately, I am wondering if there is an answer to our dilemma. I have found another post about this, but it never seemed to completely resolve the problem for some people. Here is the post:

    http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-issue-with-duplicate-post-titles-help?replies=39

    I tried stripping the old title info out of my header and just putting in

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

    and then disabling "Force rewrite titles" on the SEO -> Titles settings page, but it didn't work for me.

    I am at a loss. Wish Joost de Valk would poke his head in here and give us some direction...

  7. teknofilo
    Member
    Posted 2 years ago #

    I have fixed this by editing header.php.

    Replace:

    <title><?php
    	/*
    	 * Print the <title> tag based on what is being viewed.
    	 */
    	global $page, $paged;
    
    	wp_title( '|', true, 'right' );
    
    	// Add the blog name.
    	bloginfo( 'name' );
    
    	// Add the blog description for the home/front page.
    	$site_description = get_bloginfo( 'description', 'display' );
    	if ( $site_description && ( is_home() || is_front_page() ) )
    		echo " | $site_description";
    
    	// Add a page number if necessary:
    	if ( $paged >= 2 || $page >= 2 )
    		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
    
    	?></title>

    By:

    <title>
    <?php
    if(is_home() || is_front_page()) { echo bloginfo("name"); echo " | "; echo bloginfo("description"); }
    else
    { echo wp_title('|', true, 'right'); } ?>
    </title>

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress SEO by Yoast
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic