title: wordpress get recent comments
body: <p>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....
          </p>
  
  <pre><code>    &lt;h4&gt;Recent Posts&lt;/h4&gt;
      &lt;ul&gt;
          &lt;?php
              $args = array( 'numberposts' =&gt; '5' );
              $recent_posts = wp_get_recent_posts( $args );
              foreach( $recent_posts as $recent ){
                  echo '&lt;li&gt;&lt;a href="' . get_permalink($recent["ID"]) . '"&gt;' .   $recent["post_title"].'&lt;/a&gt; &lt;/li&gt; ';
              }
              wp_reset_query();
          ?&gt;
      &lt;/ul&gt;
  </code></pre>
  
  <p>how do I get the latest comments..</p>
  
  <p>ps. I have tried to change the posts to comments and doesn't work.</p>
  
  <p>Thanks in advance</p>
  
  <p>Steven</p>