Show comments on wordpress home page Show comments on wordpress home page wordpress wordpress

Show comments on wordpress home page


Try this before the <?php endwhile; ?> of the loop in loop.php:

<?php  $withcomments = "1";  comments_template();?>


Try this:

<?php global $withcomments; $withcomments = 1; comments_template(); ?>


There is a much simpler way that doesn't involve editing php code. First make sure you can create comments on other pages and if that is working, go back to the home page.

On the top right, click the gear icon to show settings and near the bottom of settings change the "page attributes" "template" from "front page template" to "default template". Save and you will have comments.

HOWEVER you may lose other features of the home page (you can always change the template back). For me I didn't lose anything.

Understand that a normal wordpress blog is intended to have comments on the blogs (posts), but not on the home page. By default you shouldn't even have comments on any pages (just posts) but that is easily enabled. That is why normally there are no comments allowed but if you have a one page site this is a problem.

Also note that there are many different themes and some do allow comments on the home page.