GFXedit.com

December
4

Fixes for Wordpress 2.3.1

With Wordpress 2.3, the developer had merged and created three new tables Three new terms tables (schema) : term_relationships, term_taxonomy and terms support combined post categories, link categories, and the new tags. Which means old tables like categories, link2cat, and link2post are gone ! Now this had affected few themes on GFXedit as most themes used to query the “gone” tables for showing up with the style instead of just using a single line of code <?php get_links()?>.

The Fix

  • Open the file containing the sidebar code (usually sidebar.php) and look for the code, something which starts with

    <?php
    $link_cats = $wpdb->get_results…….

  • Delete the whole line of code, i.e till it ends with ?> For e.g delete the code

    <?php
    $link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
    foreach ($link_cats as $link_cat) {
    ?>

  • Now delete the next coming closing tag i.e <?php } ?>

That should fix the error but in order to show up the Link heading you have replace the code within the <h2></h2> (h3,h4 in some themes) tags with any text like “Links” or “BlogRoll

Posted under ~ Theme Fixes |

RSS feed for comments on this post. | Trackback

Leave a comment »

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .

« Internet-Sharing : 2 Column [Wordpress Theme] |
|