I don’t want the bottom middle widget to be Most Comments, or whatever. I have an RSS feed in there now and that’s what I want to show up. How can I delete the default widget? It’s not showing up on my appearance module.
I see this in footer.php:
Code:
<h3>Most Commented</h3>
<ul><?php $result = $wpdb->get_results("SELECT comment_count,ID,post_title FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 5"); foreach ($result as $topfive) { $postid = $topfive->ID; $title = $topfive->post_title; $commentcount = $topfive->comment_count; if ($commentcount != 0) { ?> <li><a href="<?php echo get_permalink($postid); ?>" title="<?php echo $title ?>"><?php echo $title ?></a></li> <?php } } ?>
</ul>
what can i delete and not screw things up?
(von: shelbypets)
Hier noch 4 weitere Ergebnisse dieses Threads:
Re: delete default bottom middle widget contents :: Reply by Joern
18. Mai. 2010 (von: Joern)
in footer.php you are exactly at the right place to delete something.I show you here with explanation what does what:<div id="mostcommented" class="clearfloat"> HERE MIDDLE SECTION STARTSSTUFF BELOW SHOWS MOST COMMENTED POSTS<h3>Most Commented</h3><ul><?php $result = $wpdb->get_results("SELECT comment_count,ID,post_title FROM $wpdb->posts ORDER BY…
Re: delete default bottom middle widget contents :: Reply by shelbypets
18. Mai. 2010 (von: shelbypets)
Still showing Most Commented. websiteHere's new code: (I think I've double checked this)(also 4:15 am here, going to bed, won't be able to try new suggestion for several hours)</div> <div id="front-popular" class="clearfloat"><div id="recentpost" class="clearfloat"><?php /* Widgetized sidebar, if you have…
Re: delete default bottom middle widget contents :: Reply by Joern
18. Mai. 2010 (von: Joern)
I cant believe your sidebar.php looks like you show aboveThere is still<h3>Most Commented</h3><ul></ul>left I guessActually with the code left as you gave this should't come out..____________________you find me on Google+, Twitt... Weiterlesen →
Re: delete default bottom middle widget contents :: Reply by shelbypets
18. Mai. 2010 (von: shelbypets)
for whatever reason, it wouldn't save the delete of those fields. It finally did. Weird.Thank you for your help Joern! Weiterlesen →