How to add post_distinct filter to WP_Comment_Query?
Okay, I understood by now, that get_comments() is only for … well comments. The following is not very elegant, but it does work at least. $i = 0; while (count($comments) < $number) { $comment = get_comments( apply_filters( ‘widget_comments_args’, array( ‘number’ => 1, ‘status’ => ‘approve’, ‘post_status’ => ‘publish’, ‘offset’ => $i ) ) ); if … Read more