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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With