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:

FREE EBOOK
Your step-by-step roadmap to a profitable web dev business. From landing more clients to scaling like crazy.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

FREE EBOOK
Plan, build, and launch your next WP site without a hitch. Our checklist makes the process easy and repeatable.

By downloading this ebook I consent to occasionally receive emails from WPMU DEV.
We keep your email 100% private and do not spam.

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.

Tags: