I have been tryin for the last few hours to research how to get recent comments from wordpress. here is how I managed to get recent posts....
<h4>Recent Posts</h4>
<ul>
<?php
$args = array( 'numberposts' => '5' );
$recent_posts = wp_get_recent_posts( $args );
foreach( $recent_posts as $recent ){
echo '<li><a href="' . get_permalink($recent["ID"]) . '">' . $recent["post_title"].'</a> </li> ';
}
wp_reset_query();
?>
</ul>
how do I get the latest comments..
ps. I have tried to change the posts to comments and doesn't work.
Thanks in advance
Steven