Comments won't appear
-
I’m using a theme called Reason and I am new to WordPress.
My comments won’t appear. See: https://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">←</span> Older Comments' ); ?></div> <div class="nav-next"><?php next_comments_link( 'Newer Comments <span class="meta-nav">→</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">←</span> Older Comments' ); ?></div> <div class="nav-next"><?php next_comments_link( 'Newer Comments <span class="meta-nav">→</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 -->
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Comments won't appear’ is closed to new replies.