Simplify Comment Templates in WordPress 3.0 With the New Comments Tag

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 OttoPress.com’s tutorial on the new form tag or check out the codex for more information.

Free Video Why 100 is NOT a Perfect Google PageSpeed Score (*5 Min Watch) Learn how to use Google PageSpeed Insights to set realistic goals, improve site speed, and why aiming for a perfect 100 is the WRONG goal.
Tags: