I have a code like this:
<?php $comments = get_comments( 'post_id=' . $post->ID ); echo get_comment_author($comments[0]->comment_ID); ?>
<br />
<?php $comments = get_comments( 'post_id=' . $post->ID ); echo get_comment_date('d F H:i', $comments[0]->comment_ID); ?>
and i want to include 'approve' - approved
comments into this code.
I am familiar with this code:
<?php $defaults = array(
'ID' => '',
'number' => '1',
'order' => 'DESC',
'status' => 'approved',
); ?>
But I am unable to integrate both codes.
My point is: show posts last commenter name and comment date d F H:i
together. Any suggestions?