Only display posts with comments
I ran into this same problem recently and developed a good solution that maintains paging (which some of the answers here do not) and also allows for only targeting certain comment types and comment approved statuses. function has_comments_join( $join, &$wp_query ) { global $wpdb; if ($comment_term = $wp_query->get(‘post_has_comments’)) { $join .= $wpdb->prepare(” JOIN $wpdb->comments ON … Read more