How to Update a WordPress Theme to 2.3 Compatible

Posted by SEO Dave on January 17th, 2008 at 02:57am

With the advent of WordPress 2.3 we now have tags, a bit like WordPress categories tags can be added to any post you create and so from an SEO perspective can be useful in creating new content from old. There’s more to WordPress 2.3 than just tag support, but from a theme perspective it’s the biggest change.

Pretty easy to make a WordPress theme 2.3 compatible, however in the process of doing so you make the theme no longer work with earlier versions of WordPress. Fortunately I’ve created some tag code that solves the problem (the basic tag code breaks earlier versions of WordPress if you don’t use the function exists coding below) and so rather than creating 2 versions of your WordPress themes, you only need to make one :-))

Going to cover two locations for the tagging code, but you can use this sort of code elsewhere. Sidebar (menu) which will be a tagging cloud and single.php (single blog posts).

Adding Tagging Code to The Sidebar

Add the following code somewhere in your sidebar.php file. You might have to edit it to match your themes CSS info etc…, take a look at the code responsible for Categories and copy relevant CSS info.

< ?php if ( function_exists('wp_tag_cloud')){ ?>

< ?php _e('Tags'); ?>

< ?php wp_tag_cloud('smallest=8&largest=22&number=50'); ?>
< ?php } ?>

This will create a list of tags (up to 50, change the number 50 for less/more tags) on your menu with the smallest tag having font size 8 and largest tag font size 22 (pretty obvious what to change if you want different fonts).

If your theme doesn’t really work with tag clouds on the menu (can look terrible) you could add this code to the foooter.php instead.

Adding Tagging Code to Single Posts

Open single.php and find this code

< ?php the_content() ;?>

Add the following code below or close to below it.

< ?php /* Tags WP 2.3 Code Start */ if ( function_exists('is_tag')){ ?>

< ?php the_tags(); ?>

< ?php /* Tags WP 2.3 Code End */ } ?>

This will create a simple list of tags to your blog pages like you see at 1-70 Horde Leveling Guide Review which at the time of writing this WordPress 2.3 tagging tutorial will show at least one tag (World of Warcraft).

The above code can also be added to archive pages like index.php, archive.php and category.php (if they all exist). By adding to all these pages your tags will be shown on the home page, category pages and monthly archive pages.

WordPress 2.3 Compatible themes

There’s more you can do with tags, for example you can see on this site when you view the World of Warcraft tag page the title of the page is the name of the tag and there’s a header with the name of the tag as well. Because every theme is different it’s not possible to explain how to do this in a way that will work most of the time.

If you want these types of features on your blog without the hassle of changing code I suggest you checkout my Google AdSense WordPress Themes site where all WordPress themes are 2.3 compatible and include these and many more features (all widget ready, include targeted AdSense coding and of course SEO optimisation).

Popularity: 13%

Under Non SEO :-)+ WordPress Themes

4 Comments for How to Update a WordPress Theme to 2.3 Compatible

  • 1. Aakash  |  March 7th, 2008 at 9:04 pm

    Very much helpful…I have just added tagging on one of my wordpress blogs.

  • 2. Ken Nickless  |  April 15th, 2008 at 6:56 am

    Great post, but aren’t we now up to version 2.5?

  • 3. SEO Dave  |  April 19th, 2008 at 5:11 am

    This information also works fine with WordPress 2.5, so no extra coding needed.

    David

  • 4. Harry  |  May 10th, 2008 at 6:30 am

    Hey Dave…I have come on your blog for the first time but found it very informative. Can you give me some more tips? (I am totally new to wordpress even blogging)

    1. I don’t find the plugin tab in my blog - don’t know why? How to get it?

    2. When I am inserting adsense code, do I have to edit CSS and to do that buy the CSS editor?

    I limit myself to two questions although I have lot more questions to ask.

    Thanks in advance

Leave a Comment for How to Update a WordPress Theme to 2.3 Compatible

Required

Required, hidden

RSS Comments Feed RSS Comments Feed

Related posts to How to Update a WordPress Theme to 2.3 Compatible

WordPress Theme Kubrick with Google AdSense

Kubrick is my fifth in a series of AdSense converted WordPress theme. Kubrick Theme with AdSense Installation Instructions Download the kubrick-adsense-02.zip file below Download Kubrick with AdSense WordPress...

WordPress Theme Connections with Google AdSense

Connections is my second AdSense converted WordPress theme. Like the first theme I converted, Blix, it uses 3 blended Google AdSense units per page in...

WordPress Theme Ocadia with Google AdSense

Ocadia is my fourth in a series of AdSense converted WordPress theme. Like the other themes I converted, Blix, Connections and Almost Spring, it uses...

WordPress Theme Almost Spring with Google AdSense

Almost Spring is my third AdSense converted WordPress theme. Like the first two themes I converted, Blix and Connections, it uses 3 blended Google AdSense...

WordPress Theme Blix with Google AdSense

I now sell AdSense ready WordPress 2.3 Themes and Blogspot Templates at Google AdSense SEO Themes and Templates. Check the WordPress ones under the WordPress Themes...


Translations

Popular Articles
Categories
Adverts

Tags
Blogroll
Social Network
Meta
Recent Articles