Hi Mohammed!
Thks for yr reply.
I tried yr code, but it gives me a syntax error in the “return” line; also, when I eliminated the url and just used return $author, it still was showing the username and not first name.
However, I tweaked the code a bit and came up with this:
add_filter('get_comment_author_link', 'sf_comment_first_name');
function sf_comment_first_name($author) {
global $comment;
if (!empty($comment->user_id)){
$user=get_userdata($comment->user_id);
$author=$user->user_firstname;
}
return $author;
}
which works just fine! So thanks for your help!
Just one more question…can I get this to do the same thing for my product reviews?
Thks again,
Claudia