WordPress.org

Ready to get started?Download WordPress

Forums

Comments won't appear (6 posts)

  1. leastlikely
    Member
    Posted 1 year ago #

    I'm using a theme called Reason and I am new to WordPress.

    My comments won't appear. See: http://leastlikely.net/?p=90#comment-10
    I've made numerous test comments.

    They do appear when I make no changes to the theme but I don't like the look of them and I want to utilize the Jetpack.Me comment features (login with twitter & facebook). I installed the plugin and at first nothing happened so I edited page.php -- now the add a comment box shows up and allows you to log in with wordpress, twitter, or facebook, but any comments added don't appear (no approval need or anything)

    Please help me!

    This is my code:

    <!-- COMMENTS SECTION -->
    			<div id="comments">
    <?php if ( post_password_required() ) : // don't display comments for password-protected posts ?>
    				<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'oenology' ); ?></p>
    			</div><!-- #comments -->
    <?php
    		/* Stop the rest of comments.php from being processed,
    		 * but don't kill the script entirely -- we still have
    		 * to fully load the template.
    		 */
    		return;
    	endif;
    ?>
    
    <?php
    	// You can start editing here -- including this comment!
    ?>
    
    <h2 class="commentsheader">Reply</h2>
    
    <?php if ( have_comments() ) : ?>
    
    <?php
    	$postrac = false; // Boolean (true/false) variable indicating if a post has Trackbacks or Pingbacks. Set to 'false' until determined to be true.
    	if ($comments) { // if there are no comments, don't look for Trackbacks
    
    		foreach ($comments as $comment) { // step through each comment
    			if( get_comment_type() != "comment" ) {
    				$postrac = true;  // if a comment has a comment_type other than "comment" (i.e. a Trackback or Pingback), set $postrac to 'true'
    				}
    			}
    
    		if ( $postrac ) { // if the post has any trackbacks por pingbacks, display them as a list ?>
    			<h3 class='trackbackheader'>Trackbacks</h3>
                            <ol class='trackbacklist'>
    			<?php foreach ($comments as $comment) { // step through each comment
    				if(get_comment_type() != "comment") { // if the comment is a Trackback or Pingback ?>
    					<li><?php echo comment_author_link(); // display the Comment Author Link (the Trackback/Pingback URL) ?></li>
    				<?php }
    			} ?>
    			</ol>
    		<?php }
    	}
    ?>
    
    <h3>Comments <?php if ( ! comments_open() ) { ?> <small>(Comments are closed)</small><?php } ?></h3>
    
    <?php $i = 0; ?>
    	<span id="comments-responses" style="font-weight:bold;"><?php comments_number('No Responses', 'One Response', '% Responses' );?> to “<?php the_title(); ?>”</span>
    
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // If the paged comments setting is enabled, and enough comments exisst to cause comments to be paged ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( '<span class="meta-nav">&larr;</span> Older Comments' ); ?></div>
    				<div class="nav-next"><?php next_comments_link( 'Newer Comments <span class="meta-nav">&rarr;</span>' ); ?></div>
    			</div> <!-- .navigation -->
    <?php endif; // check for comment navigation 
    
    		if ( get_comments_number() > '0' ) { ?>
    			<ol class="commentlist">
    				<?php	wp_list_comments( 'type=comment&avatar_size=40' ); ?>
    			</ol>
    		<?php }
    
    		if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
    			<div class="navigation">
    				<div class="nav-previous"><?php previous_comments_link( '<span class="meta-nav">&larr;</span> Older Comments' ); ?></div>
    				<div class="nav-next"><?php next_comments_link( 'Newer Comments <span class="meta-nav">&rarr;</span>' ); ?></div>
    			</div><!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    
    <?php else : // or, if we don't have comments:
    
    endif; // end have_comments() 
    
    comment_form();
    ?>
    
    </div><!-- #comments -->
    			<!-- COMMENTS-SECTION -->
  2. Generically speaking:

    That's bizarre, you shouldn't have to edit any files for comments to work. Have you confirmed that comments are enabled for that post?

    While logged in, visit

    http://leastlikely.net/wp-admin/post.php?post=90&action=edit

    On the top right should be a dropdown menu titled "Screen Options", click that and make sure "Discussion" is checked.

    Once that is checked scroll down and make sure that "Allow Comments" is enabled. If it's not save and update that post.

    More specifically for your theme:

    That's a commercial theme and we don't support those here. You may get better (specific) support from the theme author. Part of what you paid for was support and you may as well use that option.

  3. amuttwill
    Member
    Posted 1 year ago #

    I am having the same issue. I posted and several people have tried commenting but they are not going through. Somehow, one comment went through but many others have not. I tried a test and it's not working from my end either.

  4. RichardWPG
    Member
    Posted 1 year ago #

    Go to admin > settings > discussion

  5. Japh
    Member
    Posted 1 year ago #

    Hi Leastlikely,

    You should try contacting the author of the theme for assistance. Their profile page is here: http://themeforest.net/user/epicera and you can use the contact form there to get in touch.

    Hope that get you going.

  6. Caroline
    Member
    Posted 1 year ago #

    Kind of same problem here, my trackbacks/pingbacks won't appear in the comments field — but they are still counted.

    Since I can only find 5-10 years old posts about this issue, I tried to figure it out myself, but no luck so far :/

Topic Closed

This topic has been closed to new replies.

About this Topic