Fix – WordPress Comment Reply Going Under Last Comment

This typically happens when the comment reply form does not show up. So clicking on the reply link/button that appears below each comment takes you to the main post comment form. And any comment posted in that form is by default added to the last row of comments!

By the way, I am not talking about the post comment form, but the form that allows you to reply to each comment on a wordpress post.

To fix that – make sure that you have the following code in your functions.php

function vista2231_enqueue_comments_reply() {

    if ( is_singular() && comments_open() && ( get_option( 'thread_comments' ) == 1) ) {
        // Load comment-reply.js (into footer)
        wp_enqueue_script( 'comment-reply', '/wp-includes/js/comment-reply.min.js', array(), false, true );

add_action(  'wp_enqueue_scripts', 'vista2231_enqueue_comments_reply' );

Next make sure that you have wp_footer() added to your footer.php file.


Thats it! Now save and the view any post. If the post has comments then the comment reply form for each comment should show up below that specific comment on clicking “reply” link/button. And any reply you post there will show up nicely indented below the original comment as it is supposed to be.

Did that work for you? Need help? Post in the comments below.