see: http://codex.ww.wp.xz.cn/Function_Reference/comments_template
there is no third argument for post ID.
What do you mean with custom comment field?
Thread Starter
baszer
(@baszer)
in that document:
Uses global: (array) $comment List of comment objects for the current post
Uses: $wpdb
Uses: $id
Uses: $post
Uses: $withcomments Will not try to get the comments if the post has none.
so I thought, I can get the comment form for id but I dont know how.
I want to have a comment form in a page, but from another page.
What you could try is load the page and get the comments and comment form:
<?php
$post = get_page($id = 650);
setup_postdata($post);
?>
<?php comments_template( '', true ); ?>
<?php wp_reset_postdata(); ?>
In this example, after you make a comment you will be redirected to the page with $id = 650.
To remedy this you can put this in your theme’s functions.php:
add_filter('comment_post_redirect', 'redirect_after_comment');
function redirect_after_comment($location)
{
return $_SERVER["HTTP_REFERER"];
}