Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add comments to a WordPress theme

How can I add comments to my WordPress theme. I tried <?php comment_form(); ?> but it doesn't give any output. Am I missing something?

like image 937
RyanJP Avatar asked Aug 26 '12 21:08

RyanJP


1 Answers

Just add the following line

<?php comments_template(); ?>

inside your single.php where you want to add/display the comments template. This will add/include the comments.php file in the single template and make sure that comments.php is also available in your theme folder.

Also you can use Disqus wordpress plugin, it's a very nice plugin.

References: Codex and a tutorial.

like image 123
The Alpha Avatar answered Nov 01 '22 15:11

The Alpha