01 Mar, 2007
Search engine friendly WordPress titles
Web Development » Search, Snippets, WordPress » Search engine friendly WordPress titles
This blog’s title (have a look in the title bar ^) has been seo-ed to the max. Here’s what I put in header.php of my current theme.
<title>
<?php wp_title($sep = '');?>
<?php if (is_home()) { bloginfo('description'); } ?>
- <?php bloginfo('name'); ?>
</title>
Robert thinks it’s cool! What about you?
[Edit]
Here’s yet better version from Robert.
<title>
<?php if (is_home()) { bloginfo('description'); } ?>
<?php if (is_search()) { _e('Search Results' .
' for ' . get_query_var('s')); } ?>
<?php wp_title($sep = '');?> - <?php bloginfo('name'); ?>
</title>
Technorati Tags: seo, wordpress, search engine optimisation, search engine friendly
Other similiar posts that you might be interested in:
- Google custom search engine
- How to add a breadcrumb to your blog and have it appear on Google’s Search Result Snippet
- Display 10 recent post titles on homepage
- Tips to creating an email signature for your online brand
- Wikia search is live
- WordPress Upgrade (from 1.5 to the latest 2.0.3)
- alpha (beta) search






