Use comment_form() not a self made code. See the answers to question 15179 for a working example of a comments.php.
Related Posts:
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- how to show comments only author which send own posts in wordpress
- I want to change the WordPress comments file
- How to change the case of all post titles to “Title Case”
- Function to execute when a post is moved to trash .
- How to make comments work for a post loaded per Ajax?
- Fatal error: Call to undefined function post_exists()
- How to publish a post with empty title and empty content?
- How to display comments and comment form on custom post type?
- How do I use element instead of tags in WordPress post content having webP support?
- Comments are assigned to wrong or related post
- How can I allow editors to leave comments on posts that have not yet been published?
- Update post date on every new comment?
- Code to auto expire posts after 30 days
- Keep a fluid max number of posts on site
- Custom colors for post rows based on post meta value
- How to add an admin function only to posts, not pages?
- Human Time Diff, change mins to minutes
- Enable commenting on front-end preview page for pending posts
- Custom wp_trim_words() function not trimming right
- Delete Post From Front-End and attachment permanently
- Limit function to specific post category
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- Hide Post comments when displayed via WP_Query
- Function to show random posts from a category
- Hiding posts in a list from specified categories
- Disable Post/Page comment emails for creators
- Run a function when post is deleted?
- Checking is user author of number of posts?
- When trashing a post, also trash related comments
- Create cron job without a plugin?
- How to rename “Publish” metabox title in post screen
- count the total number of comments the user has received for his published posts
- Uppercase first sentence in every post
- Add icon/badge next to posttitle of specific category
- Converting a dynamic piece of code using WordPress Loop into a static one using Post ID
- How to Orderby Comments by post title?
- If modified on same day, show only time
- Email entire post contents
- Force the “Choose from the most used tags” meta box section to always be expanded
- Show the content that is after the excerpt using child theme
- How to allow users to post only in certain category and hide elements from edit page?
- Move comments only from one WP installation to another
- A friend wants to make a comment on one of my articles, she has to be logged to wordpress?
- Get all images in post and comments like Twitter before post title
- Is it possible to paste a link without tags and make it directly a link in a post?
- Force authors to Preview a post before publishing
- WordPress Comment posting problem
- Order posts alphabetically: how to set order=asc in mysql query?
- What do these phpMyAdmin errors mean on my WordPress databaes?
- Howto show comment count by post in post?
- Post type no single page
- Adding a user’s ID behind the tag ref link address
- Isn’t the way posts are displayed very unefficient?
- How to check in functions.php if there is data in a WP_Query?
- Defined function isn’t showed on page
- WordPress 302 Redirect to Random Product/Post/Page
- Get post by tag
- Add code to a specific post’s content
- Related Posts function not working
- Display on page every post in blog WITH comments
- Query function not executed between element [closed]
- Optimize CPT-function with a loop
- If post exists, make it a comment in existing post with same name?
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Making a wordpress page print friendly
- Count the total views of all user posts published
- Shortcode for Comments and Comment Boxes in Post Loop
- How to put the author of the post in the comments?
- Check if almost 10 year old – working code is up to date
- How to add a custom class attribute into code wrapper? [duplicate]
- Remove pagination if search returns empty
- Remove HTML tags from all posts
- WordPress weird behaviour on comments
- Save All Post Permalink From A Specific Category into a .txt file
- AJAX load more posts not using correct category and repeating the same few posts
- How to Display Most View Post in the template file?
- Show post excerpt
- How do I apply a wordpress function to something with no ID inside an archive page?
- Show author bio box
- Display author bio box
- Check if user has avatar
- Posting a comment redirects admin/users to blank page
- How to enable comments meta box for other author posts?
- Comments as part of a post
- Call image from post on index page?
- How do I get thumbnails?
- Run function after post is updated
- Apply comment to different post (not the current post) [duplicate]
- When Author add new post change default status to pending
- fire action when post is being edited as well as saved?
- External link not showing on post but showing on comment
- wp_query select if have comments
- Getting rid of the blog page entirely
- How to display a certain template element only for posts published within certain time range?
- List direct children of page
- Notify Author of the post if admin deletes his post and perform some function
- Show List of Posts With Comments Open
- Simple shortcode to check if a user has commented on a certain post
- How to use shortcode to get the second to newest post?