How do I make wordpress comment fields required?

First of all, I highly recommend using the comment_form() function. It’s all of the above code in one line (more if you need to tweak parts of the code). You can designate name and email as required in the settings section of your admin area:

Discussion settings

Leave a Comment