First WordPress Theme: 4 - Comments
You have your index.php file (as made here). We need to put the comments in.
1. Download comments.zip and extract the contents (comments.php and comments-popup.php) to your theme directory - again, this is based on the default WordPress theme.
2. We need to add the call to comments.php into the code of index.php
In index.php, find the point in your code where the post output is finished, but before the while comand loops to the next post
It will almost certainly be between </div> of the id=”post” div and the <?php endwhile; ?>
and paste this
<?php comments_template(); ?>
(You could have the comments and form above the post, but this isn’t common…)
Save it all and upload it - the comments and form should be appearing on the individual post pages.
That’s it - that’s a workable Wordpress theme - not very advanced, but something that can be built on. The next thing to explore is the array of template tags that Wordpress offers.
If these tutorials have helped you get started with theme design - please give us a link from your blog, eg…
<a href="http://www.codescheme.net/">WordPress Theme Design</a>










