Write html code in comments
Write html code in comments
Write html code in comments
Simply use get_comment_author_email. See here for more information.
There’s a filter called get_comment_author that you can hook into to modify a comment author’s appearance. add_filter( ‘get_comment_author’, function( $author, $comment_id, $comment ) { // limit to first 10 characters $author = substr( $author, 0, 10 ); return $author; }, 10, 3 );
As you have said that you have already tried disabling plugins and consulted hosting provider, there must be an issue with the WordPress version. Would you please tell me the version number? Today, v5.0.1 has been released. You should try installing it.
You can try using Greg’s Comment Length Limiter. It provides you with a configurable limit on the length of comments.
Unable to view comments on my website
I have fixed this, though I must “style” things better with CSS. In short my theme was not completely updated to WordPress 2.7. I needed one line of code in header.php and a few changes to comments.php it is all detailed on Ottodestruct.
I would probably approach this with a wp_mail filter to catch these messages before they are sent. That would be the simplest approach in my opinion. You could create a filter function to screen email content and use key elements unique to these emails. My example will just target “New comment on your post” contained … Read more
Although it would be useful to determine why the extra notifications are sent (forwarding settings?), there is a way to adjust who gets notification emails when a comment is posted (which is what you asked, not how to fix the problem): // adds emails to the ‘notify admins on comment submit’ // from http://www.sourcexpress.com/customize-wordpress-comment-notification-emails/ // … Read more
The comments are outputted via a callback function given as an argument in this function: wp_list_comments(). In your comments.php you will likely find the wp_list_comments() function with often a callback argument like so wp_list_comments( array ( ‘callback’ => ‘callback_function_name’)) You can copy comments.php into your child-theme and modify the call to the function with a … Read more