ok so I was trying to add the following code in a text widget:
<?php
$result = $wpdb->get_results("SELECT comment_count,ID,post_title, post_date FROM $wpdb->posts WHERE post_date BETWEEN '2009-06-01' AND '2009-07-01' ORDER BY comment_count DESC LIMIT 0 , 10");
foreach ($result as $topten) {
$postid = $topten->ID;
$title = $topten->post_title;
$commentcount = $topten->comment_count;
if ($commentcount != 0) {
?>
"><?php echo $title ?>
<?php }
}
?>
afterwards all my widgets disappeared along with my footer.
I can see the widgets in my Admin Control Panel just fine but they are not showing on the site. I tried removing/adding them again but no good.
I tried changing themes and widgets DO show up in other themes but not in my main one, I checked the theme files and there doesn't seem to be anything wrong in any part in sidebar.php or index.php, where else should I check?
any ideas?
in case you need my site it's: http://www.kumailplus.com