You are here: Home / WordPress / Enhancing the Wordpress title

Enhancing the Wordpress title

A page gets better ranking when the URL includes keywoard. URL’s with keywords in them yield higher clickthroughs than URL’s without. The SERP title and site summary is a matter as well.

We can do something little to enhance the Wordpress title, so it wouldn’t be the same title on everypage.

<title>
<?php bloginfo(’name’); ?>
<?php if(is_home()) { ?>
- <?php bloginfo(’description’); ?>
<?php } ?>
<?php if(is_single()) { ?>
<?php } ?> <?php wp_title(); ?>
<?php if(is_404()) { ?>
- 404 Error! Page Not Found
<?php } ?>
<?php if(is_search()) { ?>
- Search Results for: <?php echo wp_specialchars($s, 1); ?>
<?php } ?>
</title>

Source: Green Beast

2 Responses to “Enhancing the Wordpress title”

  1. Shahryar June 21st, 2008, 12:48 am

    I’ve been wanting to have the wordpress blog I download show the blog title in the subject to as many characters as possible (kind of like how Engadget does it). Is this what the advice is over here?

  2. Mehmet June 21st, 2008, 8:09 am

    Shahryar,

    Please check the title of gabfire.com. This title function has been taken in use here. Then you will have an idea that how does it work

Leave a Reply