Leave a Reply to %s – Not Working
-
Hi, I’ve been upgrading our commenting system theme files to work with the new threaded comment options available in WordPress. I have pretty much replaced my entire comments.php file with the default theme code.
Everything is working out lovely. I can reply to comments and create children (nested) comments. The respond form appears directly underneath the comment you are replying to.
However, the code in my comments.php leads me to believe that if you are replying to an existing comment the title of the response form should change to Leave a Reply to *Previous Comment Author*. Mine always, always says “Leave a Reply” regardless if it is a child or parent comment.
From comments.php
<?php if ( comments_open() ) : ?> <div id="respond"> <h3><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3> <div class="cancel-comment-reply"> <small><?php cancel_comment_reply_link(); ?></small> </div>
From header.php
<link rel="pingback" href="<?php bloginfo('pingback_url') ?>" /> <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); wp_head() ?> </head>
Where else should I be checking my code? What other part of the theme might cause this dynamic header to fail or to always treat it as a new comment instead of a reply?
- The topic ‘Leave a Reply to %s – Not Working’ is closed to new replies.