• By default, WordPress hides some fields from the comments form for logged in users (name and email). I would like all fields (name, email and other fields that I added) to appear to the logged in user. It’s possible? Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @wpforever18

    When a user is logged-in and posts a comment on any post/page etc then WordPress fetches their name and email, automatically from their profile, which they have entered while signing up. You can see those details under Dashboard -> Comments.

    In the default settings, I do not see a possibility through which one can show the email and name field on the comment form for logged in users.

    But if you want a custom name and email field for logged-in users then there are possibilities like you can check this solution. As explained in the solution for your problem you can use comment_form_logged_in_after to create custom fields(name, email) for the comment form and they will only appear for the logged in users and then can save them in the comment meta.

    I hope this will help you.

    Thanks

    Thread Starter wpforever18

    (@wpforever18)

    Thank you very much, Prashant! I’ll check your suggestion. 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Do not hide comments form fields’ is closed to new replies.