
Bug编译狮
在WordPress中,向评论者发送感谢消息可以增加用户的参与感和满意度,同时也能提升网站的用户体验。以下是如何实现这一功能的步骤:
步骤 1: 创建感谢消息模板
首先,你需要创建一个模板文件来存储感谢消息的内容。这个文件通常命名为 comments.php 或 single.php(具体取决于你的主题结构),因为这些文件负责显示帖子或单个页面上的所有评论。
示例:创建 comments-template.php
<?php if ( have_comments() ) : ?>
<h2><?php comments_number( 'No Comments', 'One Comment', '% Comments' ); ?></h2>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through?
echo '<nav class="comment-navigation">';
echo paginate_comments_links( array(
'prev_text' => __('Newer Comments'),
'next_text' => __('Older Comments')
) );
echo '</nav>';
endif; ?>
<ol class="comment-list">
<?php wp_list_comments(); ?>
</ol>
<div class="navigation comment-navigation">
<!-- 分页链接 -->
</div>
<?php else : // null or not set ?>
<?php if ( comments_open() || '0' != get_comments_number() ) : ?>
<p class="nocomments"><?php _e( 'Comments are closed.' ); ?></p>
<?php endif; ?>
<?php endif; ?>
这个模板会根据是否有评论来显示相应的消息。如果没有评论,它会显示一条默认的消息。
步骤 2: 添加到您的主题
确保你的主题有一个 functions.php 文件或者一个自定义插件来处理评论相关的行为。如果你没有这样的文件,可以在其中添加以下代码:
function thank_you_message($comment, $args) {
global $post;
$author = $comment->comment_author;
$date = date('F jS, Y', strtotime($comment->comment_date));
$message = 'Thank you for your comment! We appreciate your feedback and will respond as soon as possible.';
return "<div class='thank-you-message'><strong>$author said:</strong><br />$message<br /><span class='timestamp'>$date</span></div>";
}
add_filter('comment_text', 'thank_you_message', 10, 2);
这段代码会在每个评论旁边添加一个“感谢您”的短语,以及评论的时间戳。
步骤 3: 测试和调整
完成上述设置后,保存更改并刷新你的博客页面查看效果。确保检查所有评论区域,确认感谢消息正确显示。
通过以上步骤,你可以轻松地在WordPress中为评论者发送感谢信息,增强用户体验。这不仅提升了评论质量,也增强了社区氛围。

黑板前的Bug语法讲师
在WordPress中向博客评论者发送感谢消息可以通过使用WordPress的邮件功能来实现。以下是如何操作的具体步骤:
步骤 1: 安装和配置邮件服务器
首先,你需要安装一个邮件服务器如SendGrid、Mailgun或AWS SES等来接收和处理邮件。这些服务通常提供免费试用期。
- SendGrid: 官方文档:https://docs.sendgrid.com/
- Mailgun: 官方文档:https://api.mailgun.net/docs
- AWS SES: 官方文档:https://aws.amazon.com/ses/pricing/
确保已将你的电子邮件地址加入到发件人的列表中,以便接收来自WordPress的邮件。
步骤 2: 在WordPress中设置邮件模板
在WordPress的“主题”或“插件管理”中找到并激活“WordPress邮件模板”。这将为你的网站创建默认的邮件模板。
步骤 3: 编辑评论以添加感谢消息
要在评论中添加感谢消息,你可以通过修改WordPress的评论模板(通常是.php文件)来实现。以下是一个简单的例子:
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<div class="comment-form-comment">
<form method="post" action="<?php echo esc_url( get_comment_form_link() ); ?>">
<?php comment_form(); ?>
</form>
</div>
在这个例子中,我们检查是否定义了ABSPATH,如果未定义,则退出函数。然后,我们在get_comment_form_link()函数中获取评论表单链接,最后调用comment_form()函数显示评论表单。
步骤 4: 添加JavaScript验证机制
为了防止恶意评论,可以添加JavaScript验证机制,例如通过验证邮箱地址或用户名是否唯一。这是在WordPress评论表单中添加JavaScript的方法之一:
<script type="text/javascript">
function validateCommentForm() {
var email = document.getElementById('email').value;
var name = document.getElementById('name').value;
// 这里是验证逻辑,根据实际情况编写
// 如果需要验证邮箱地址,请使用以下代码:
if (!/^([a-zA-Z0-9_-.])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(email)) {
alert("请输入有效的邮箱地址!");
return false;
}
if (name.length < 5) {
alert("姓名至少应包含5个字符!");
return false;
}
return true;
}
</script>
步骤 5: 更新评论表单
将validateCommentForm函数添加到comment_form.php文件中,如下所示:
<script type="text/javascript">
function validateCommentForm() {
var email = document.getElementById('email').value;
var name = document.getElementById('name').value;
// 这里是验证逻辑,根据实际情况编写
// 如果需要验证邮箱地址,请使用以下代码:
if (!/^([a-zA-Z0-9_-.])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test(email)) {
alert("请输入有效的邮箱地址!");
return false;
}
if (name.length < 5) {
alert("姓名至少应包含5个字符!");
return false;
}
return true;
}
</script>
<form id="comment-form" method="post" action="">
...
<!-- 其他字段 -->
<input type="hidden" name="ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_parent" value="<?php the_ID(); ?>" />
<input type="hidden" name="comment_status" value="1" />
<input type="hidden" name="post_type" value="post" />
<input type="hidden" name="page_id" value="<?php echo esc_attr(get_option('page_for_posts')); ?>" />
<input type="hidden" name="theme_mods" value="" />
<input type="hidden" name="comment_author_email" value="<?php echo esc_attr(get_comment_author_meta('email')); ?>" />
<input type="hidden" name="comment_author" value="<?php echo esc_attr(get_comment_author()); ?>" />
<input type="hidden" name="comment_post_ID" value="<?php the_ID(); ?>" />
<input type="hidden" name

