Change comments count text

Content Views helps you to show comments count of WordPress posts easily without coding. By default, Content Views uses the default WordPress comment counting function.

If you want to change comments count text, please add this code to file functions.php of your WordPress theme:

// Content Views - customize comments count output
add_filter( 'pt_cv_comments_count', 'cvp_theme_comments_count', 100, 1 );
function cvp_theme_comments_count( $args ) {
	ob_start();
	comments_popup_link( 'No Comments', '1 Comment', '% Comments' );
	$args = ob_get_clean();
	return $args;
}

You can modify ‘No Comments’, ‘1 Comment’, ‘% Comments’ as you want.

This is available for both Free & Pro version of Content Views (since free version 1.9.9.2).

Thank you,

Scroll to Top