Return to Snippet

Revision: 28272
at July 6, 2010 10:10 by goatboy91587


Initial Code
<title><?php if (is_home () ) 
{ 
bloginfo('name'); 
} 

elseif ( is_category() )
{ 
single_cat_title(); echo ' - ' ; 
bloginfo('name'); 
}

elseif (is_single() ) 
{ 
single_post_title(); 
}

elseif (is_page() ) 
{ 
bloginfo('name'); 
echo ': '; 
single_post_title(); 
}

else 
{ 
wp_title('',true); 
} ?></title>

Initial URL
http://www.brettwidmann.com

Initial Description
Used in my post on how to optimize WordPress, which can be found here: http://www.brettwidmann.com/2010/01/optimizing-your-wordpress-site-pt-2/

Initial Title
WordPress Title PHP Snippet

Initial Tags
wordpress

Initial Language
PHP