I am working on fixing the theme I am using, GStyles (available here) and trying to make it work with WordPress 2.3.
So far I have fixed index.php and singles.php.
Here is an original code snippet from singles.php (sorry, the code runs over the edge, the theme is fixed width so it runs over… I might make this column flexible in due time, one thing at a time… or see if there is a “word wrap” feature in the program highlighter)…it should be the same in index.php:
[php]Category: | |‘); ?>
Tags:
>[/php]
This was fixed in my new version to look like this:
[php]Category: | |‘); ?>
‘); } else {echo “Tags: None”;} }?>
‘; } ?>[/php]
That should allow it to fall back to UTW if somebody is still using an older version of WordPress. However, I don’t have an old install to test it on, but near as I can tell it should be good.
I am now working on fixing the functions.php and finding a fix for the post2cat problems in it.
The problem with GStyles in WordPress 2.3 as it stands now also comes from the following in singles.php:
[php]
if ( is_single() or is_page() ) {
if( function_exists('cattag_related_posts') ) {
$relatedposts = cattag_related_posts();
if ($relatedposts === false) {
// echo '
No related posts
‘;
} else {
echo ‘
‘;
}
}
}
?>[/php]
The fix is simple enough for now, just take that bit out. It kills the Related Posts function, but cattag_related_posts needs the post2cat. Now that is the part that may be past my programming experiences so far… then again, I did figure out how to get the rest working.



Testing now with various WP installs, looks like your workaround is perfect.
Good to know it works on several others installs. I knew it work with mine, but wasn’t sure about others.
Hopefully you can find a fix for the Related Posts when you get a chance.
Great theme anyhow. Finally a theme to move me from Tarski, which I have been using for a very long time…
Good to know it works on several others installs. I knew it work with mine, but wasn’t sure about others. Hopefully you can find a fix for the Related Posts when you get a chance. Great theme anyhow. Finally a theme to move me from Tarski, which I have been using for a very long time…
Looks like there are several related post plugins, but only a few works perfect. For now I’m stripping the related post function and call from my themes, until I checked the compability to all WP versions, as WP 2.2 db tables differs significant from WP 2.3.
And thanks for the kind words.
Looks like there are several related post plugins, but only a few works perfect. For now I’m stripping the related post function and call from my themes, until I checked the compability to all WP versions, as WP 2.2 db tables differs significant from WP 2.3. And thanks for the kind words.