I want to use my sidebar.php for my theme and not the built in wordpress widgets because it gives me greater control of the sidebar. But the reason I am not using it is because I cannot get the most recent comments to work. Is there anyone out there who knows the code to call on it. For example, I can grab the links using: <?php wp_list_bookmarks('title_before=<h2>&title_after=</h2>'); ?> PHP: But what do I need to get the recent comments. Again, I don't want to use the built in widgets because I want to add pics and stuff to my sidebar. I am using WP 2.51
thanks Mizaks; I was hoping to avoid another plugin, but it seems like it might be the only way. I did find code I'll try first. Here it is for anyone else who may need it: <?php if (function_exists('get_recent_comments')) { ?> <li><h2><?php _e('Recent Comments:'); ?></h2> <ul> <?php get_recent_comments(); ?> </ul> </li> <?php } ?> PHP:
This function is a part of a plugin. It won't work without it. You can safely install this plugin, it has been tested on many blogs.
I undestand what you're saying; but if recent comments is already part of wordpress; there must be a way to call it with code rather than using all widgets. There has to be