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 FROMI 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() ) { ?><?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>-
<?php wp_get_links($link_cat->cat_id); ?>
<?php } ?>
<!– end links –>
Anyone know how to fix this?
- The topic ‘Plain Vanilla theme SQL prob’ is closed to new replies.