Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

when i use thread comment which i call with this

<?php wp_list_comments('type=comment&callback=sandbox_comments'); ?>

in comments.php and it's work but the children comment are always stay below of every parent comment (also below <div class="comment-info clear">) .. i want children comment of the thread go above the info div (<div class="comment-info clear">) but below the comment content (<div class="comment-content">) how can i do this. how can i move the children comment into parent div. please help :'( i've try a lot but it doesn't work.

this is example what i want...

http://img.ihere.org/uploads/acb493a8c0.png

but this is what i have...(don't care about the difference color)

http://img.ihere.org/uploads/4a4594542c.png

this is code of function sandbox_comments in function.php

function sandbox_comments($comment, $args, $depth) {
$GLOBALS['comment'] = $comment;
$GLOBALS['comment_depth'] = $depth;
?>
    <li id="comment-<?php comment_ID() ?>" class="<?php sandbox_comment_class() ?>">
        <div class="comment-author vcard"><?php sandbox_commenter_link() ?></div>
        <div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'sandbox'),
                    get_comment_date(),
                    get_comment_time(),
                    '#comment-' . get_comment_ID() );
                    edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>'); ?></div>
<?php if ($comment->comment_approved == '0') _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'sandbox') ?>
        <div class="comment-content">
            <?php comment_text() ?>
        </div>
        <?php // echo the comment reply link with help from Justin Tadlock http://justintadlock.com/ and Will Norris http://willnorris.com/
            if($args['type'] == 'all' || get_comment_type() == 'comment') :
                comment_reply_link(array_merge($args, array(
                    'reply_text' => __('Reply','sandbox'), 
                    'login_text' => __('Log in to reply.','sandbox'),
                    'depth' => $depth,
                    'before' => '<div class="comment-reply-link">', 
                    'after' => '</div>'
                )));
            endif;
        ?>
        <div class="comment-info clear" id="comment-info-parent">
        <span class="author-by">โดย : </span> </div> <?php }

please help me. thank you a lot for your kindness :')

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.