Display Most Recent Three Comments Per Post

There is one more way to achieve this, without overriding files, using functions.php. Add following code in functions.php file. add_filter(‘wp_list_comments_args’, ‘override_args’, 10, 1); function override_args($args) { $args = array( ‘style’ => ‘ol’, ‘short_ping’ => true, ‘avatar_size’ => 56, ‘per_page’ => ‘3’ ); return $args; }

Prevent author from editing comments from others in their post

Try use the following code in your themes functions.php // http://scribu.net/wordpress/prevent-blog-authors-from-editing-comments.html function restrict_comment_editing( $caps, $cap, $user_id, $args ) { if ( ‘edit_comment’ == $cap ) { $comment = get_comment( $args[0] ); if ( $comment->user_id != $user_id ) $caps[] = ‘moderate_comments’; } return $caps; } add_filter( ‘map_meta_cap’, ‘restrict_comment_editing’, 10, 4 );

How to require users not to be logged in for comments on single page only?

Extremely not tested, based on overriding the global “users must login to comment” option (comment_registration) for a specific post function wpse208664_option_comment_registration($v) { if (is_single() && (get_the_ID() == your specific post ID)) $v = 0; return $v; } add_filter(‘option_comment_registration’, ‘wpse208664_option_comment_registration’);

Allowing comments on author pages

Please have a look here: https://codex.wordpress.org/Function_Reference/comment_form unless I’m mistaken, you will need to add this to your author.php file. If your using a theme that gets updated your will have to make a plugin out of it. <?php comment_form( $args, $post_id ); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)