', $after = '', $dateFormat = 'Y m-d') { global $wpdb; $comments = $wpdb->get_results("SELECT comment_author, comment_ID, comment_post_ID, comment_content, comment_date FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $num"); $html = "
'; $html .= get_the_title($comment->comment_post_ID); $html .= '
'; $html .= 'by ' . $comment->comment_author . ' on ' . $commentDate . '
'; $html .= '' . nl2br(chopString($comment->comment_content, $length)) . '
'; $html .= $after; /** * This is the end of the mini-loop. Don't edit past here. */ } $html .= "