• Hi,

    On my website all users have to be logged in to comment on a blog-item.
    If a comment is placed I want the users first and last name placed by their comment.

    I have no idea how to do this. If I use get_comment_author it shows me Anonymous. The codex tells me this:

    Displays the comment author name; that is, the one supplied by the commenter. If no name is provided (and “User must fill out name and email” is not enabled under Discussion Options), WordPress will assign “Anonymous” as comment author.

    But the user is logged in. So I should be able to place a name there.

    Any thoughts?
    M.

Viewing 1 replies (of 1 total)
  • Moderator t-p

    (@t-p)

    Does your comment form ask for first name and last name as two separate fields?

Viewing 1 replies (of 1 total)
  • The topic ‘Get commenter first name’ is closed to new replies.