Just as @Jevuska mentioned, you can use the $post_id as an argument here, in fact, you can also use a ton of optional $args as well <?php comment_form( $args, $post_id ); ?>
You can find the information in the Codex here: https://codex.wordpress.org/Function_Reference/comment_form
Related Posts:
- How do I replace a function, declared inside a plugin’s class, in functions.php?
- How to export comments in WordPress?
- is_plugin_active() returning false on active plugin
- Unable to check if plugin is active
- What are the package and subpackage comment for?
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Is there a plugin for posting inline comments, like in MS Word? [closed]
- Disable saving comment details (name, e-mail) in cookie?
- Facebook comments box on front page
- Disabling Comment Notifications for Post Author
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- Are there any drawbacks to install IntenseDebate on my blog?
- Why does including a file in theme’s functions.php not work?
- Installing Facebook comment plug in without loosing all previous wordpress comments?
- Notify commenters about new replies
- Include files for a plugin not including
- Custom comment type maybe?
- Don’t send notification if author comments his own post plugin help?
- How does WooCommerce display a custom comment_type in Comment Admin?
- Adding rich text editor to my plugin
- adding a text message beside the comment submit button
- How to add a privacy-checkbox in comment-template?
- Plugin: How should I handle deleting comments?
- Akismet plugin is deleting spam despite preferences
- Plugin Functionality Only for Editor and Administrator
- Leveraging WordPress Comments on Custom Plugin Object page
- Get total number of comment of the posts written by an author
- Display comments of users on single page
- add_filter comment_edit_redirect not working
- How to change commenter links to /user/user_id?
- Facebook plugin shows existing comments
- unregistered user can write in blog page – possible? how to?
- How can I get WordPress to save comments in markdown format?
- Creating a plugin to sanitize comment and the url field before display only
- Creating plugin using simple_html_dom parser?
- WordPress comments not appearing in blog posts, likely because of Redux template. Could I fix this with a plugin that adds a comment form as a block? [closed]
- Send reply with pre-prepared answers
- posts comments goes to trash
- Use of Templates in a Plugin
- Comment section not showing correctly
- Disqus deleted comments are syncing with wordpress but active comments do not
- WordPress 4.2.1 pre_get_comments doesn’t work after update
- WP Plugins – Use includes to display page content
- Integrate Facebook comments with native comments
- Post Comments with Ajax in WordPress
- Notify comment author upon reply
- Custom setup of wordpress comments that are displayed
- Is there a specific term for Plugins that are specified in a WordPress Post using Comments?
- Add back to post link on blank comment post error page
- Flag Comment as inappropriate button plugin
- Help with comments.php
- Use $variable from file1.php in file2.php (different file paths)
- Some WordPress Posts are automatically becoming comments on other Posts
- Comment IP Plugin – Fixing onfocus=’this.select()’
- get_comments_number() giving wrong results! What are alternatives?
- Moving FB comments at the end of page
- Comment Approve – Add custom function when comment is approved
- Individual Comment Notification Setting For Post Author
- How to save comment name email url fields?
- Trying to include files in plugin isn’t working
- Add a Custom Field in Comment Box next to the Text area
- Error: Can´t access facebook comment plugin admin page
- Separate jQuery for Individual Comments?
- Pull comments from one page/post into another page/post?
- Using plugin_dir_path() with WordPress on MAMP
- Engadget Like most commented plugins
- Does anyone know what’s the plugin for this Comment Section?
- Display WordPress comments before the plugins?
- Displaying page content from plugin, inside exising empty WP page
- Why the internal link get converted into a comment?
- Oops! That page can’t be found
- Enable comments pagination only amp page
- FPDF for creating pdf diplomas
- How to remove WordPress Default Comment? not Facebook
- Comment restrictions Wodpress
- Disqus comment system not show
- How is it possible to create Multi part sections where people can answer or comment or vote on various parts of a page’s content as given example?
- How to fix slow comment query?
- AddThis Plugin adding html comments in P tags
- How to show a message to a user?
- Disqus comments count taking long to update
- How to write wordpress plugins faster to load?
- Paginated Comments “reply” does not work!
- Creating a comments voting system
- Jetpack Comments Change Placeholder Text
- page creator to leave comments ONLY
- show Visual form builder in the front end
- Why links are not linked if edited comment?
- Include paths and functions for external scripts
- Including a PHP file via a function that is part of a plugin?
- How to fix vanilla comments extra iframe space
- Reply form used in wordpress.com
- which is this plugin ? [closed]
- Shortcode return is printing a 1 afterward
- White Screen When Includding A Folder With PHP Files
- Questions about using Disqus or Jetpack for comments [closed]
- php include returns 1 as output with other outputs [closed]
- How to Allow Users to Select Recipients In a WordPress Comment section?
- Transfer wordpress comments form on another post [closed]
- Display file contents within Plugin