Comment Functionality
In this section, we'll add the custom comment functionality.
Let's open up single.php
and go right under endif
. We'll say <?php comments_template(); ?>
:
<?php endif; ?>
<?php comments_template(); ?>
</div>
Let's save this and reload. We have our comment section now:

Let's say Great Post
, click on Post Comment
, and it works!
Now this will work as far as functionality goes, but it doesn't look too good, so I want to show you how we can customize this.
We'll create a new page, or a new file, and we'll call this comments.php
. If we go back now and reload you'll see there's nothing here, it's reading from this file; if we say Test
and reload, we get Test
:

So it's up to us to customize how we want this to work.
Note
There's actually some helpful code in the documentation at https://codex.wordpress.org/Function_Reference/wp_list_comments for our wp_list_comments
, and this is what we want.
In the comments.php
file enter the following code:
<?php $args =...