Add Comment Counter and Link
-
I would like to add the # of comments and a link to the comment section on the Home page for each post (on the same line as the date and possibly at the bottom of the post as well.
I’m new to wordpress, but from what I’ve been reading online it looks like I need to edit my index.php file which currently has no reference to comments.
my site: https://www.3inNYC.com
code from index.php where I’m guessing I might put the comment count and comment link:
<div class=”author-timestamp-wrap”> <!– Author-timestamp wrap –>
<?php if ($var[‘post_author’] == ‘on’) {?><span class=”author”>Posted by <?php the_author(); ?></span><?php } ?>
<?php if ($var[‘post_timestamp’] == ‘on’) {?><span class=”timeStamp”><?php if ($var[‘post_author’] == ‘on’) {?>on <?php } ?><?php the_time(‘l, F j, Y’); ?></span><?php } ?>
</div>Any help would be appreciated.
- The topic ‘Add Comment Counter and Link’ is closed to new replies.