No Comments on Post
-
Generally you wouldn’t want a comments post box on your home page as that would add a lot of clutter to the page. Most people reading your posts will never comment on them, so showing a comment box on the home page is kind of overkill. If they want to post a comment, they will click on the “comments” link to go to the page to comment.
However, if it is absolutely necessary for your to have a comment box on every post on your home page, you would need to copy the
<?php comments_template(); ?>
code to the index.php file of your theme towards the end of The Loop.Hi, I am also having the exact same problem with my site. Thank you for that reply, but I have implemented it and alas, still no improvement. Here is a snippet of my code from the index.php file in the Amazing Grace theme. Is there something else I should be doing? If you need to take a look, my website is http://whengodhelps.com.
<?php endif; ?> <?php if (!is_singular()): ?> <span class="commentslink"><?php comments_popup_link('No comments »', '1 Comment »', '% Comments »');?></span> <?php else: ?> <span class="rss">Subscribe to <a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Subscribe to RSS feed'); ?>" ><?php _e('<abbr title="Subscribe to RSS Feed">RSS</abbr>'); ?></a> feed</span> <?php endif; ?> <?php edit_post_link('Edit', ' | ', ''); ?> <?php comments_template(); ?> </div> </div> <?php if ($loopcounter == 1 && !is_singular()) { include (TEMPLATEPATH . '/ad_middle.php'); } ?> </div> <?php if (is_singular()): ?> <div class="commentsblock"> <?php comments_template(); ?> </div> <?php endif; ?> </div> <?php endwhile; ?> <?php if (!is_singular()): ?> <div id="nav-global" class="navigation"> <div class="nav-previous"> <?php next_posts_link('« Previous entries'); echo ' '; previous_posts_link('Next entries »'); ?> </div> </div> <?php endif; ?> <?php else : ?> <h2>Not Found</h2> <div class="entrybody">Sorry, but you are looking for something that isn't here.</div> <?php endif; ?> </div> <?php get_footer(); ?>
Thanks so much for your help.
Thank you Grandslambert! I appreciate your help!
- The topic ‘No Comments on Post’ is closed to new replies.
(@daring)
15 years, 2 months ago
Hello! I am using the template “Zeke 1.0 + Widgets”. While I have a “post comments” box on all of my pages, I do not have one on my “home” page. I see ‘<?php comments_template(); ?>’ in the “single post, single.php” code. Any idea why I see no comments box on my home page? Website is thedaringentrepreneur.com Any help would be appreciated.