1. Page Titles
Instead of using the standard:
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
You can add a little more to it, so that you have control of the title of the home, search, author, single pages etc.
<title> <?php if ( is_home() ) { ?><?php bloginfo('name'); ?> » <?php bloginfo('description'); ?><?php } ?> <?php if ( is_search() ) { ?><?php bloginfo('name'); ?> » Search Results<?php } ?> <?php if ( is_author() ) { ?><?php bloginfo('name'); ?> » Author Archives<?php } ?> <?php if ( is_single() ) { ?><?php wp_title(''); ?> » <?php bloginfo('name'); ?><?php } ?> <?php if ( is_page() ) { ?><?php bloginfo('name'); ?> » <?php wp_title(''); ?><?php } ?> <?php if ( is_category() ) { ?><?php bloginfo('name'); ?> » Archive » <?php single_cat_title(); ?><?php } ?> <?php if ( is_month() ) { ?><?php bloginfo('name'); ?> » Archive » <?php the_time('F'); ?><?php } ?> <?php if (function_exists('is_tag')) { if ( is_tag() ) { ?><?php bloginfo('name'); ?> » Tag Archive » <?php single_tag_title("", true); } } ?> </title>
2. Body Classes
To gain more control over the styling of your pages, you can set it up so that the title of each post is applied as a class to the body element.
<body class="<?php echo $post->post_name; ?>">
You can take this even further by adding classes for the type of page (ie. 404, search, archive etc.), the operating system and browser that the visitor is using.
For more information on this check the Sandbox and Thematic themes.
3. Dynamic Copyright
Often I see website footers that say “Copyright 2008″.
To make it so the year is automatically updated for you, just add:
Copyright © <?php echo date("Y"); ?> <?php bloginfo('name'); ?>.
Thanks for sharing this info. By the way, I often see website footers that say Copyright 2005 or even 2000… hehehe :) Cheers.
Yes, I have seen those as well.