Fix Redoable Theme 1.2 for WordPress 2.3
-
Hello everyone!
As some other folks possibly do, I am using the Redoable Theme. Unfortunately, it has some problems with the new version 2.3 of wordpress.
I was able to fix these problems on my site, and I would like to tell you how i did it, in case you are facing the same problems.
This includes fixing of the theme’s code as well as hacking some plugins that are not compatible with WP 2.3.
I found those plugins being incompatible with 2.3:
- Extended Live Archive
- Generator für Google Sitemaps
- Ultimate Tag Warrior
- Google Sitemaps – UTW Tag Addon
- Ultimate Category Cloud
Other plugins may have problems as well, but if that’s the case, I wasn’t using them.
Fixing Extended Live archive and Google Sitemaps
That’s the easy part, because the plugin-authors have fixed their plugins. Just install the current versions.
Fixing the problem with UTW
By now, the UTW has not been fixed for WP 2.3. However the plugin called Simple Tags is compatible with WP2.3 and can be used instead.All you have to do is installing the Simple-Tags-plugin and applying some changes to the Redoable’s sidebar.php:
look for these lines:
<?php if(function_exists('utw_showweightedtagsetalphabetical')) { ?> <div class="sb-tags"> <h2><?php _e('Tags','redo_domain'); ?></h2> <div> <?php UTW_ShowWeightedTagSetAlphabetical("coloredtagcloud"); ?> </div> </div> <div class="sb-spacer"></div> <?php } ?>
and change them to:
<?php if(function_exists('wp_tag_cloud')) { ?> <div class="sb-tags"> <h2><?php _e('Tags','redo_domain'); ?></h2> <div> <?php st_tag_cloud('title=&unit=pt&largest=8&smallest=8&maxcolor=#FFFFFF&mincolor=#666666&number=100'); ?> </div> </div> <div class="sb-spacer"></div> <?php } ?>
Furthermore, the display of tags and related posts for single posts needs to be changed from UTW-functions to the new functions. In order to do this, the file single_post.php needs to be edited in the following way:
<span class="entry-tags"><?php _e('Tags:','redo_domain'); ?> <?php UTW_ShowTagsForCurrentPost("technoraticommalist") ?>.</span>
must be changed into
<span class="entry-tags"><?php _e('Tags:','redo_domain'); ?> <?php the_tags('', ', ', ''); ?>.</span>
To display the post’s tags. And to display the related posts properly, these lines (scroll to the right, to see the complete lines):
<?php if(function_exists('related_posts')) { ?> <div class="relatedPosts"> <h2>related posts</h2> <ul> <?php related_posts(); ?> </ul> </div> <?php } ?>
must bereplaced by:
<?php if(function_exists('st_related_posts')) { ?> <div class="relatedPosts"> <h2>related posts</h2> <?php st_related_posts('number=7&title=') ?> </div> <?php } ?>
Fixing Ultimate Category Cloud
So far, I couldn’t find a fixed version of this plugin, so I made a quick-and dirty-fix myself.WARNING: after making the following changes to the plugin, it is possible that it won’t work propperly with other themes than Redoable!!!
I changed one single line of code. I took:
$cats = list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=FALSE, $child_of=0, $categories=0, $recurse=0, $feed = '', $feed_image = '', $exclude = '', $hierarchical=FALSE)
and made it use the new function of WP2.3:
$cats = get_all_cats(1, 'all', 'name', 'asc', '', false, 0, 1, 1, 1, true,0, 0, 1, '', '', $exclude, false);
- The topic ‘Fix Redoable Theme 1.2 for WordPress 2.3’ is closed to new replies.