WordPress.org

Ready to get started?Download WordPress

Forums

No Comments on Post (4 posts)

  1. daring
    Member
    Posted 5 years 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.

  2. GrandSlambert
    Member
    Posted 5 years ago #

    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.

  3. nudirection
    Member
    Posted 5 years ago #

    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('&laquo; Previous entries');
    				echo '&nbsp;';
    				previous_posts_link('Next entries &raquo;');
    			?>
    			</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.

  4. daring
    Member
    Posted 5 years ago #

    Thank you Grandslambert! I appreciate your help!

Topic Closed

This topic has been closed to new replies.

About this Topic