• Hi

    After upgrading my blog from WP 2.0.7 to 2.1 my blogroll/links section doesn’t appear. In its place there is the following error:

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1]
    SELECT cat_id, cat_name FROM

    Could you give me some help? Thank you very much

Viewing 5 replies - 1 through 5 (of 5 total)
  • use <?php wp_list_bookmarks(); ?>

    Thread Starter macaetano

    (@macaetano)

    I’m sorry but I’m not a PHP ‘whizzkid’. Could you give me an hand on what changes should I make on the sidebar.php file of my current theme (Buryy)? Here is what I have on its links section:

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

    <h3><?php echo $link_cat->cat_name; ?></h3>
    <ul class=”menu”>
    <?php wp_get_links($link_cat->cat_id); ?>

    Many thanks for the help.

    Yeah that all has to go, and you’ll probably have to update your stylesheet to match what the new function outputs. Go yell at your theme’s author for not using the standard wp functions and hope he’ll update it.

    If you at least want it to work replace all of that with <?php wp_list_bookmarks(); ?>, there should be a after that block of code to that will need to go to.

    Thread Starter macaetano

    (@macaetano)

    That’s strange because I changed the theme for the default theme and the blogroll still didn’t appeared…

    Ok, if anyone is having this problem and is unsure what to do with that PHP code that was referenced and you’re using Utom 4U theme…

    In the ‘wp-content’ folder, go into ‘themes’ and then ‘4u’ and then the ‘blocks’ folder. Find the ‘blogroll.php’ file and edit it. It’s gonna be pretty short and sweet; just remove the ONLY line that has starts with <?php and replace it with the line mentioned in this thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blogroll problem after upgrading to WP 2.1’ is closed to new replies.