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.
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?