Create Custom Comment Form
-
Hi!
I’m developing some kind of a photo gallery and need to display a comment form that will write comments to the DB. But I wanna decide things like the comment_post_ID by form fields. so i copied the redered html of the normal coment form and tried some stuff but it doesn’t work…
this is my code:
<form method="post" action="<?php bloginfo('url'); ?>/wp-comments-post.php"> <input type="hidden" name="SOME-VALUE" value="<?php echo $MY-COMMENT-POST-ID; ?>" /> <input type="text" name="author" id="author" value="User-1" /> <input type="text" id="comment" name="comment" /> <input type="submit"/> </form>
btw. i’m not using the loop…
i appreciate any help!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Create Custom Comment Form’ is closed to new replies.