Grow your CSS skills. Land your dream job.

WordPress Nested Comments Issue

  • # April 26, 2010 at 1:36 pm

    Hi there,

    I have hit a wall trying to figure out the nested comment issue I am having. I am hoping that someone here can give me a little help. I am using the wp thread comment plug-in for my comments and nested replies. Every time I add a reply to a comment it’s treating it as a comment and putting it at the bottom of the comments list. I have no idea what is going on and would greatly appreciate anyone who could help. Thanks.

    Here is an example of the issue:
    http://www.fullcreative.com/fullwordpre … 4#comments

    Code:
    < ?php // Do not delete these lines
    if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
    die ('Please do not load this page directly. Thanks!');

    if (!empty($post->post_password)) { // if there’s a password
    if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn’t match the cookie
    ?>

    This post is password protected. Enter the password to view comments.

    < ?php
    return;
    }
    }

    /* This variable is for alternating comment background */
    $oddcomment = 'class="alt" ';
    ?>

    < ?php if ($comments) : ?>

    < ?php comments_number('No Responses', 'One Response', '% Responses' );?> to “< ?php the_title(); ?>”

      < ?php wp_list_comments('avatar_size=50'); ?>

    < ?php else : // this is displayed if there are no comments so far ?>

    < ?php if ('open' == $post->comment_status) : ?>

    < ?php else : // comments are closed ?>

    Comments are closed.

    < ?php endif; ?>
    < ?php endif; ?>

    < ?php if ('open' == $post->comment_status) : ?>

    < ?php comment_form_title( 'Leave a Comment', 'Leave a Reply to %s' ); ?>

    < ?php cancel_comment_reply_link(); ?>

    < ?php if ( get_option('comment_registration') && !$user_ID ) : ?>

    You must be /wp-login.php?redirect_to=< ?php echo urlencode(get_permalink()); ?>“>logged in to post a comment.

    < ?php else : ?>

    /wp-admin/profile.php”>< ?php echo $user_identity; ?>. ” title=”Log out of this account”>Log out »

    < ?php else : ?>

    />

    />

    < ?php endif; ?>


    * Name and Email Required.

    # April 26, 2010 at 5:23 pm

    Nevermind, I found it. Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".