Forums
Home / Plugin: Theme Check / Preferance? comment_form or comments_template
(@mevaser)
11 years, 4 months ago
Hi again, my website uses
<?php comments_template(); ?>
But the validator prefers:
<?php comment_form(); ?>
If you do not mind, why?
http://wordpress.org/extend/plugins/theme-check/
If I use <?php comment_form(); ?> comments disappear from the Theme. Any ideas?
(@otto42)
WordPress.org Admin
Those two functions do entirely different things. A theme should have both of them.
The comment_template() function both loads the comments from the database and loads the comments.php file in the theme to display them.
The comment_form() function displays the comment form. It would be located in the comments.php file.
(@mevaser)
11 years, 4 months ago
Hi again, my website uses
But the validator prefers:
If you do not mind, why?
http://wordpress.org/extend/plugins/theme-check/