Created
March 26, 2012 14:03
-
-
Save sercomi/2205296 to your computer and use it in GitHub Desktop.
WP: Pages titles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title><?php | |
if (is_home () || is_front_page() ) { | |
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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment