Top

Daily Tip: Simplify Comment Templates in WordPress 3.0 With the New Comments Tag

June 29, 2010

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.

Tweet This Post


This theme is provided free of charge, provided you leave the "Wordpress Theme From Pressography.com" attribution link at the bottom of the theme.

If you want to remove the attribution link, you must pay a small, $10 license fee for each site on which you want to remove the link. Click Here For More Information

Comments

Got something to say?

Bottom
Article Archive  |  This site is a historical archive of pressography.com, a WordPress plugin and theme blog that published between 2006 and 2012. It is preserved for reference and is not operated by, affiliated with, or endorsed by its original authors. Nothing here is for sale and no form on this site is active. If you are the original owner and would like this domain returned, please get in touch.