I know this is minor but pixies.ca has a nice tip to make the title tag of your blog more search engine friendly. By default WordPress outputs the blog title when on the home page. Then blog name plus post title for individual entries. This small hack displays the blog name and blog description on the home page.
[php]
< ? bloginfo('name'); ?> < ? if ( is_home() ) { ?> » < ? bloginfo('description'); ?>< ? } ?> < ? if ( is_single() ) { ?> » Blog Archive < ? } ?> < ? wp_title(); ?>
[/php]
Do you like this article? Submit it to Blogosphere News!
3 Responses
André
March 5th, 2005 at 3:26 pm
1I recommend Optimal Title Plugin
John
March 5th, 2005 at 3:48 pm
2What am I missing?
To accomplish the same thing as this plugin do the following between the title tags. (Untested)
<?php if ( is_home() ) { bloginfo(’name’); ?>» <?php bloginfo(’description’); } if ( is_single() ) { ?> <?php wp_title(); ?> » <? bloginfo(’name’); } ?>
Right?
André
March 5th, 2005 at 4:33 pm
3Yes looks good, the function is called optimal_title and at the end the description is being displayed