function comment_count( $count ) { global $id; if(is_admin()) return $count; $comment_count = 0; $comments = get_approved_comments( $id ); foreach ( $comments as $comment ) { if ( $comment->comment_type === '' ) { $comment_count++; } } return $comment_count; }