The question title says it all. Myself I just stick with the default code from one of the packaged templates that comes with WordPress out of the box:
<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', 'twentyeleven' ), max( $paged, $page ) );
?></title>
Do any of you use different code for this?
Mine is:
http://www.nathanrice.net/blog/ultimate-guide-to-wordpress-seo-optimized-titles/
Works for me 🙂
I try to avoid plugins where possible.