Plain Vanilla theme SQL prob (3 posts)

  1. dunefield
    Posted 9 years ago #

    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?

  2. drmike
    Posted 9 years ago #

    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.

  3. dunefield
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic