WordPress 2.1 de Link hatasi

Mart 4th, 2007

en son yayinlanmis olan wordpress versiyonunda bazi theme lerde linkleri göstermede sorun olusa biliyor .

bude linklerin artik kategoriler menüsünden yönetildigi icin olusuyor.
hata mesaji 

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

2.1 e upgrade yapanlar bu sorunu yasiyorsa wp-content/themes/xxxx/sidebar.php dosyasini acip su satirlari degismeleri önerilir.


$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->linkcategories");
$link_cats = $wpdb->get_results("SELECT cat_id, cat_name FROM $wpdb->categories");
foreach ($link_cats as $link_cat) {
?>
<li id="linkcat-<?php echo $link_cat->cat_id; ?>"><?php echo $link_cat->cat_name; ?>
<ul>
<?php wp_get_links($link_cat->cat_id); ?>
</ul>
</li>
<?php }
 wp_list_bookmarks();

Kategoriler: Genel, PHP

Etiketler: Yorum yapın

Yorum yapın

Feed

http://www.skorp.eu / Wordpress 2.1 de Link hatasi