How to limit users to one comment per post
// Check if user has previously commented the post. global $current_user, $post; if ( ! is_user_logged_in() ) { // Show the comment form if the user is not logged in. comment_form(); } else { // The user is logged in… // Get the comments for the logged in user. $usercomment = get_comments( array ( ‘user_id’ … Read more