Subscribe

Search


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

December 4th, 2007
Tags :

Leave a comment »

Upcoming Themes

About GFXedit Designs

GFXedit Designs is the official website of Web Designer & Coder, Sreejith R Krishnan, with over five years commercial design experience as a freelance designer. Creating clear, simple, effective web designs with respects to latest web standards, personally and with help of a team of freelance designers.

The services range from web designs (PSD), XHTML/CSS coding, PHP, Content Management Systems, Static, Corporate & Blog themes with Wordpress etc.

Read more