remove html code from under comment box
-
I reviewed several comments and can’t seem to resolve this.
Here’s the code on what I believe is the comment box. However, I have a comment form to contact me on the page as well. I’m no expert in php.Help!!
<?php
/**
* Handles Comment Post to WordPress and prevents duplicate comment posting.
*
* @package WordPress
*/if ( ‘POST’ != $_SERVER[‘REQUEST_METHOD’] ) {
header(‘Allow: POST’);
header(‘HTTP/1.1 405 Method Not Allowed’);
header(‘Content-Type: text/plain’);
exit;
}/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . ‘/wp-load.php’ );nocache_headers();
$comment_post_ID = isset($_POST[‘comment_post_ID’]) ? (int) $_POST[‘comment_post_ID’] : 0;
$post = get_post($comment_post_ID);
if ( empty($post->comment_status) ) {
do_action(‘comment_id_not_found’, $comment_post_ID);
exit;
- The topic ‘remove html code from under comment box’ is closed to new replies.