@anthony750,
You’ve added some custom code in the function.php file that display the (X) contribution. The issue comes from the custom code you’re using. Please either remove or correct it.
Thank you, but you gave me this code a while ago. It should not be taken by the new version.
add_filter('wpdiscuz_comment_author', 'my_commentCount', 10, 2);
function my_commentCount($author_name, $comment) {
global $wpdb;
$no_comment = "Pas de contribution";
$one_comment = "1 contribution";
$more_comments = "% contributions";
$count = $wpdb->get_var('SELECT COUNT(comment_ID) FROM ' . $wpdb->comments. ' WHERE comment_author_email = "' . addslashes($comment->comment_author_email) . '"');
$comment_text = my_comment_number_text($no_comment, $one_comment, $more_comments, $count);
return $author_name .' | <span class="wpdiscuz-comment-count">'.$comment_text.'</span>';
Do you have another code to have the number of comments next to the person’s nickname?
Sincerely,
-
This reply was modified 5 years, 2 months ago by
anthony750.
-
This reply was modified 5 years, 2 months ago by
anthony750.
You should either delete the code from functions.php file or use CSS code to hide the “reply to” section.