Last active
August 29, 2015 14:11
-
-
Save nickberens360/4d6a81875263be5e0da9 to your computer and use it in GitHub Desktop.
Wordpress: Title Tag
This file contains hidden or 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 (function_exists('is_tag') && is_tag()) { echo 'Tag Archive for "'.$tag.'" - '; } | |
elseif (is_archive()) { wp_title(''); echo ' Archive - '; } | |
elseif (is_front_page()) { wp_title(''); } | |
elseif (is_search()) { echo 'Search for "'.wp_specialchars($s).'" - '; } | |
elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(''); echo ' - '; } | |
elseif (is_404()) { echo 'Not Found - '; } bloginfo('name'); | |
?> | |
</title> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment