Support » Fixing WordPress » Plain Vanilla theme SQL prob

  • So I finally upgraded to WP 2.1 using the Plain Vanilla theme.

    Now I get an error on the front page

    [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

    I tried replacing the get_links with “wp_list_bookmarks(); ?>” however I still got the same error. This is the code.

    <!– start links –>
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>

    $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>

      <?php wp_get_links($link_cat->cat_id); ?>

    <?php } ?>

    <!– end links –>

    Anyone know how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would suggest searching the forums. It’s been much discussed. You may also want to contact the theme designer and see if he or she has updated their theme for wordpress 2.1.

    Yeah I did a search however nothing I’ve read so far has fixed the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plain Vanilla theme SQL prob’ is closed to new replies.