I'm calling my comments the ol' fashion way:

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

I would like to be able to position the 'Reply" link where I choose. Right now, it defaults to the bottom of the comment. Sure, I can move it via CSS - but what if I want to place it after the dater or username?

1 Answer 1


Use a custom callback to render the comment content. Inside of the callback function call comment_reply_link() wherever you need it:

        array (
            'add_below' => 'comment-body',
            'depth'     => $reply_depth,
            // + 1 to offer always a reply link for a consistent UI
            'max_depth' => $args['max_depth'] + 1,
            'before'    => '<p class="reply-line">',
            'after'     => '</p>'
  • Hi, toscho with this array of add_below of comment-body i can move the div reply to top? before the footer? i means i want to show the comment-reply-link in top...
    – ccdiego5
    Nov 23, 2015 at 18:20
  • 1
    @ccdiego5 Sure just use a custom comment callback and place the div wherever you need it.
    – fuxia
    Nov 23, 2015 at 20:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.