单个帖子中的评论形式效果很好。然后,在添加一些定制之后,在发布评论之后,它会重定向到此链接wp\\u comments\\u post。带有空白页的php。
这是我在注释中的代码。php那么,让它再次工作到底出了什么问题?
<?php
$form_args = array(
\'fields\' => array(
\'author\' => \' <form class="getin_form" id="post-a-comment"> <div class="row"> <div class="col-md-6 col-sm-6"> <div class="form-group bottom35"> <input class="form-control" type="text" placeholder="First Name:" required style=" border: none; border-bottom: 1px solid #a5a5a5; border-radius: 0; padding: 12px 0;box-shadow: none;height: 44px;color: #a5a5a5;font-size: 14px;position: relative; "> </div> </div>\',
\'email\' => \' <div class="col-md-6 col-sm-6"> <div class="form-group bottom35"> <input class="form-control" type="text" placeholder="Email:" required id="email" name="email" style=" border: none; border-bottom: 1px solid #a5a5a5; border-radius: 0; padding: 12px 0;box-shadow: none;height: 44px;color: #a5a5a5;font-size: 14px;position: relative; "> </div> </div> \',
),
// change the title of the reply section
\'title_reply\'=>\'Add Comment\',
// remove "Text or HTML to be displayed after the set of comment fields"
\'comment_notes_after\' => \'\',
// redefine your own textarea (the comment body)
\'comment_field\' => \' <div class="col-md-12 col-sm-12"> <div class="form-group bottom35"> <p class="comment-form-comment"><div class="form-group"><label for="comment">\' . _x( \'Comment\', \'noun\' ) . \'</label><br /> <textarea class="form-control" placeholder="Message" style=" border: none; border-bottom: 1px solid #a5a5a5; border-radius: 0; box-shadow: none; " aria-required="true"></textarea></p> </div></div> \',
\'submit_field\' =>\' <div class="col-sm-12" style="padding-right: 0; padding-left: 0;"> <button type="submit" class="button btnprimary form-control"> submit request </button> </div> </div> </form> </div> </div> </div> </div>\',
);
comment_form($form_args);