Comments not showing up in Posts
-
Hi,
I just launched a new blog, http://runningfreeblog.com/
One of my first viewers left a comment on the first post, but now I can’t seem to see how she did it. I don’t see the “Leave A Comment” on the post page. It does show up on my pages (about, advertising)
The only thing I remember doing was adding the “sharing” features from the dashboard, FB, Twitter, etc. I removed those, and the single post page comments still did not show up. Any help is greatly appreciated!! Thank you!
I have Techism Theme, version 2.0.9
Here is the single post.php code where the “Leave Comment” box is NOT showing up:
<?php
/**
* The Template for displaying all single posts
*
* @package techism
*/
get_header(); ?><div id=”primary” class=”site-content”>
<div id=”content” role=”main”><?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content’, get_post_format() ); ?>
<nav class=”nav-single”>
<h3 class=”assistive-text”><?php _e( ‘Post navigation’, ‘techism’ ); ?></h3>
<span class=”nav-previous”><?php previous_post_link( ‘%link’, ‘<span class=”meta-nav”>’ . _x( ‘←’, ‘Previous post link’, ‘techism’ ) . ‘</span> %title’ ); ?></span>
<span class=”nav-next”><?php next_post_link( ‘%link’, ‘%title <span class=”meta-nav”>’ . _x( ‘→’, ‘Next post link’, ‘techism’ ) . ‘</span>’ ); ?></span>
</nav><!– .nav-single –><?php comments_template( ”, true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!– #content –>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>********************
Here is the page.php template where the Leave Comment and box IS showing up:
<?php
/**
* The template for displaying all pages
*
* @package techism
*/get_header(); ?>
<div id=”primary” class=”site-content”>
<div id=”content” role=”main”><?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( ‘content’, ‘page’ ); ?>
<?php comments_template( ”, true ); ?>
<?php endwhile; // end of the loop. ?></div><!– #content –>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>**************
Here is Comments.php
<?php
/**
* The template for displaying Comments
*
* @package techism
*//*
* If the current post is protected by a password and
* the visitor has not yet entered the password we will
* return early without loading the comments.
*/
if ( post_password_required() )
return;
?><div id=”comments” class=”comments-area”>
<?php if ( have_comments() ) : ?>
<h2 class=”comments-title”>
<?php
printf( _n( ‘One thought on “%2$s”’, ‘%1$s thoughts on “%2$s”’, get_comments_number(), ‘techism’ ),
number_format_i18n( get_comments_number() ), ‘<span>’ . get_the_title() . ‘</span>’ );
?>
</h2><ol class=”commentlist”>
<?php wp_list_comments( array( ‘callback’ => ‘techism_comment’, ‘style’ => ‘ol’ ) ); ?>
<!– .commentlist –><?php if ( get_comment_pages_count() > 1 && get_option( ‘page_comments’ ) ) : // are there comments to navigate through ?>
<nav id=”comment-nav-below” class=”navigation” role=”navigation”>
<h1 class=”assistive-text section-heading”><?php _e( ‘Comment navigation’, ‘techism’ ); ?></h1>
<div class=”nav-previous”><?php previous_comments_link( __( ‘← Older Comments’, ‘techism’ ) ); ?></div>
<div class=”nav-next”><?php next_comments_link( __( ‘Newer Comments →’, ‘techism’ ) ); ?></div>
</nav>
<?php endif; // check for comment navigation ?><?php
/* If there are no comments and comments are closed, let’s leave a note.
* But we only want the note on posts and pages that had comments in the first place.
*/
if ( ! comments_open() && get_comments_number() ) : ?>
<p class=”nocomments”><?php _e( ‘Comments are closed.’ , ‘techism’ ); ?></p>
<?php endif; ?><?php endif; // have_comments() ?>
<?php comment_form(); ?>
</div><!– #comments .comments-area –>
- The topic ‘Comments not showing up in Posts’ is closed to new replies.