Simplify Comment Templates in WordPress 3.0 With the New Comments Tag

WordPress 3.0 has a new standard comment form tag that you should know about. Whereas previously the code for outputting a comment form was much longer, now you have this:

<?php comment_form(); ?>

This will give you a simple comments form that looks something like this:

Now doesn’t that simplify your theme development?

If you want to further customize the comment_form template tag, I highly recommend’s tutorial on the new form tag or check out the codex for more information.


Comments (2)

  1. Nice, easy tip Sarah. Thanks!

    With all of the things I’ve been learning recently, I’m going to have to start a website on what I’ve learned just to keep track of everything. I’ve got too many files and folders all over the place in my computer…….