Comments not threading since update (3 posts)

  1. buttonedorg
    Posted 4 years ago #

    Just updated my WordPress to the latest version and the comments aren't threading anymore.

    The old threaded comments still show up as threaded, it's just that the new ones won't thread when I use the reply link.

    Were there any changes made to the coding when it comes to the comments form and how the threaded comments work? Here's my current form code.

    <div id="respond">
    	<h2><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h2>
    	<p class="cancel-comment-reply"><?php cancel_comment_reply_link(); ?></p>
    	<?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
    	<p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
    	<?php else : ?>
    	<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
    		<?php if ( is_user_logged_in() ) : ?>
    		<p>Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
    		<?php else : ?>
    		<p><input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
    		<label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label></p>
    		<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    		<label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label></p>
    		<p><input type="text" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    		<label for="url"><small>Website</small></label></p>
    		<?php endif; ?>
    /****** Math Comment Spam Protection Plugin ******/
    if ( function_exists('math_comment_spam_protection') ) {
    	$mcsp_info = math_comment_spam_protection();
    ?> 	<p><input type="text" name="mcspvalue" id="mcspvalue" value="" size="22" tabindex="4" />
    	<label for="mcspvalue"><small>Spam protection: Sum of <?php echo $mcsp_info['operand1'] . ' + ' . $mcsp_info['operand2'] . ' ?' ?></small></label>
    	<input type="hidden" name="mcspinfo" value="<?php echo $mcsp_info['result']; ?>" />
    <?php } // if function_exists... ?>
    		<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>
    <?php show_subscription_checkbox(); ?>
    		<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /></p>
    		<?php comment_id_fields(); ?>
    <?php do_action('comment_form', $post->ID); ?>
    	<?php endif; // If registration required and not logged in ?>
  2. buttonedorg
    Posted 4 years ago #

    Here's the comments styling of my theme

    function blacknblue_comments($comment, $args, $depth) {
            $GLOBALS['comment'] = $comment; ?>
            <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
                    <div id="comment-<?php comment_ID() ?>" class="comment-list">
                                  <div class="comment-left">
                                          <?php echo get_avatar($comment,$size='75'); ?>
                            <div class="comment-right<?php if($comment->user_id == '1') {echo' admin-comment';} ?>"><?php comment_author_link(); ?> <a href="<?php get_comment_link( $comment->comment_ID ) ?>">#</a><?php edit_comment_link(__('(Edit)'),'  ','') ?></p>
    <?php if ($comment->comment_approved == '0') : ?><p class="moderation">Your comment is awaiting moderation</p><?php endif; ?>
    <?php comment_text() ?>
                            <div class="reply">
     <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'reply_text' => 'Reply to this Comment', 'max_depth' => $args['max_depth']))) ?>
                    </div><div class="clearfix"></div></div>
  3. buttonedorg
    Posted 4 years ago #


Topic Closed

This topic has been closed to new replies.

About this Topic