Title: Cannot create comment reply
Last modified: August 20, 2016

---

# Cannot create comment reply

 *  [Mitashkin](https://wordpress.org/support/users/mitashkin/)
 * (@mitashkin)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-create-comment-reply/)
 * Hello,
 * I am trying to build a theme, hence a comments.php from scratch. I am able to
   post comments, but when I press the “Reply” link, my reply is posted as just 
   another comment. When I swith to the “twentyeleven” theme there is no problem.
   
   What is even stranger is that a less than 30 minutes ago, both submitting replies
   and comments did not work with my custom theme and the “Submit” button led to
   a 404 error not finding wp-comments-post.php . I followed the advice in [this](http://wordpress.org/support/topic/blank-wp-comments-postphp-page-when-commenting-on-numerous-wordpress-blogs)
   toppic and wrote in the form action: <?php echo site_url( ‘/wp-comments-post.
   php’ ); ?> Instead of <?php echo get_option(‘siteurl’); ?>/wp-comments-post.php
   It worked for posting comments, but I still could not post replies. When I swithced
   the code back to <?php echo get_option(‘siteurl’); ?>/wp-comments-post.php I 
   can still post comments, but no replies. I am running this on a local server 
   on my computer. I used Bitnami to install WordPress and the server.
 * I am begging you for help, because I do not want to kill my fascination with 
   WordPress that early in the process. Thanks!

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

 *  [Big Bagel](https://wordpress.org/support/users/big-bagel/)
 * (@big-bagel)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-create-comment-reply/#post-2290902)
 * By “just another comment” I’m assuming the problem your having is getting replies
   to show directly below the replied-to comment in a nested fashion.
 * Since WordPress 3.0 you don’t actually have to create your own form to allow 
   commenting. You can just use the function: `comment_form()`.
 * [http://codex.wordpress.org/Function_Reference/comment_form](http://codex.wordpress.org/Function_Reference/comment_form)
 * And just to be thorough (you probably already know this function), to display
   all the submitted comments you can use: `wp_list_comments()`.
 * [http://codex.wordpress.org/Function_Reference/wp_list_comments](http://codex.wordpress.org/Function_Reference/wp_list_comments)
 * Using the built in functions will automatically allow you to manage nested comments
   in Settings > Discussion. It will probably also fix the 404 problem. You _can_
   still manually create your own form, but doing so has probably fallen out of 
   favor.
 * Here’s a good post that shows an example of a manually created comment form as
   well as an overview of the new `comment_form()` function:
 * [http://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/](http://ottopress.com/2010/wordpress-3-0-theme-tip-the-comment-form/)
 * Looking at the code in the latest default WordPress theme (Currently Twenty Eleven)
   for examples of how to do things is always a good idea.
 *  Thread Starter [Mitashkin](https://wordpress.org/support/users/mitashkin/)
 * (@mitashkin)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-create-comment-reply/#post-2290964)
 * Thank you very much Big Bagel! I removed my <form></form> code and replaced it
   with comment_form() and easyly found out how to remove the tag message. My comments
   and nested replies are working.
    The bad thing for novices like me is that thorough,
   step-by-step tutorials on the net are usually obsolete and connecting the pieces
   of the Codex is like an investigation. Kind Regards! Off-topic: I noticed the
   $zero in comments_number did not work after the if (have_comments) loop (I just
   inserted a separate message after else;.).

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

The topic ‘Cannot create comment reply’ is closed to new replies.

## Tags

 * [wp-comments-post.php](https://wordpress.org/support/topic-tag/wp-comments-post-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Mitashkin](https://wordpress.org/support/users/mitashkin/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/cannot-create-comment-reply/#post-2290964)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
