WordPress.org

Ready to get started?Download WordPress

Forums

Blog title integrates with Post title [:(] (9 posts)

  1. karthikk88
    Member
    Posted 4 years ago #

    Hi,
    I just upgraded my blog http://www.karthikk.net to WordPress 3 and applied the TWenty Ten theme. ANd now, the bots read my blog along with the title of the post continued by the blog title. Ex. if the title of the post is Create A professional resume, the bots read as Create a professional resumeKarthik.K's Random Thoughts. Please help me! Urgent!

    Thanks!
    _
    Karthik.K

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    that is the title tag of the mentioned post:

    <title>Create a professional Resume online | Karthik.K's Random Thoughts!</title>

    your bots seem to ignore the separator |

    you can change this in header.php ( the echo ' | '; parts in the following:

    <title><?php
    	// Returns the title based on the type of page being viewed
    		if ( is_single() ) {
    			single_post_title(); echo ' | '; bloginfo( 'name' );
    		} elseif ( is_home() || is_front_page() ) {
    			bloginfo( 'name' );
    			if( get_bloginfo( 'description' ) )
    				echo ' | ' ; bloginfo( 'description' );
    			twentyten_the_page_number();
    		} elseif ( is_page() ) {
    			single_post_title( '' ); echo ' | '; bloginfo( 'name' );
    		} elseif ( is_search() ) {
    			printf( __( 'Search results for "%s"', 'twentyten' ), get_search_query() ); twentyten_the_page_number(); echo ' | '; bloginfo( 'name' );
    		} elseif ( is_404() ) {
    			_e( 'Not Found', 'twentyten' ); echo ' | '; bloginfo( 'name' );
    		} else {
    			wp_title( '' ); echo ' | '; bloginfo( 'name' ); twentyten_the_page_number();
    		}
    	?></title>
  3. karthikk88
    Member
    Posted 4 years ago #

    Oh! Thanks! I will try this out now! And post back the result! :)

  4. karthikk88
    Member
    Posted 4 years ago #

    Hi,
    Im not able to find the echo ' | '. Here's the code:
    http://pastie.org/1034389

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    Line 21...

    wp_title( '|', true, 'right' );

    http://codex.wordpress.org/Function_Reference/wp_title

  6. karthikk88
    Member
    Posted 4 years ago #

    Did that,
    But still, Google sees the same. :( And also, check this: http://yfrog.com/mt6rlp

  7. mrmist
    Forum Janitor
    Posted 4 years ago #

    Google wouldn't necessarily reindex immediately, though.

  8. karthikk88
    Member
    Posted 4 years ago #

    True! But then, If you can check that image, Its the Wp-user online plugin! And this problem exists for the past 5 days or so!

  9. karthikk88
    Member
    Posted 4 years ago #

    Nothing seems to be fixing the problem! :( Any udpates?

Topic Closed

This topic has been closed to new replies.

About this Topic