Anonymous Review
-
When I post a review, it appears as anonymous, why? I entered a username correctly, but the review appears as anonymous. Can you help me? In my funciotn.php file there is the following function to display only the username for privacy reasons. function my_comment_author( $author = ” ) { // Get the comment ID from WP_Query $comment = get_comment( $comment_ID ); if (!empty($comment->comment_author) ) { if($comment->user_id > 0){ $user=get_userdata($comment->user_id); $author=$user->first_name.’ ‘.substr($user->last_name,0,1).’.’; // this is the actual line you want to change } else { $author = __(‘Anonymous’); } } else { $author = $comment->comment_author; } return $author; } Could this be the cause and if so how can I resolve it? Thank you
- The topic ‘Anonymous Review’ is closed to new replies.