Comments on home page
-
Solution:
<?php $withcomments = "1"; comments_template(); // Get wp-comments.php template ?>Hello,
I’m glad that you found a solution.
Where do I paste the above code?
I love the above theme but most of my readers are complaining that they cannot find where to post a comment. Previously, on my webpage, which has a stream of blog entries (see http://www.rajibroy.com), every blog entry had a link to post a comment. In this theme, you have to know to click on the title to go to the page that has the blog and the comments.
Where do I paste the above code?
I love the above theme but most of my readers are complaining that they cannot find where to post a comment. Previously, on my webpage, which has a stream of blog entries (see http://www.rajibroy.com), every blog entry had a link to post a comment. In this theme, you have to know to click on the title to go to the page that has the blog and the comments.
Rajib Roy
Try this.
In home.php file, find this block:<div class="meta"><?php _e('Category: ', 'anarcho-notepad'); ?><?php the_category(', ') ?></div>and replace from this:
<div class="meta"><?php _e('Category: ', 'anarcho-notepad'); ?><?php the_category(', ') ?> | <?php comments_popup_link('LEAVE A COMMENT'); ?></div>Arthur, It worked like a charm. I embellished it a little by putting the following:
<div class=”meta”><?php _e(‘Category: ‘, ‘anarcho-notepad’); ?><?php the_category(‘, ‘) ?> | <?php comments_popup_link(‘No Comments’, ‘1 Comment’, ‘% Comments’); ?></div>
Ok, I’m glad!
The topic ‘Comments on home page’ is closed to new replies.

(@gogzy)
12 years ago
Hello,
Is it possible to have commenting of posts on home page? I would like to have only one post on homepage and comments section below.
If it’s possible could you please explain to me how can I do that?
Thank you in advance.