2010-12-13 32 views
0

這裏是我的形式:如何製作WordPress所需的評論欄?

<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" class="validate"> 
    <?php if($user_ID) : ?> 
    <?php else : ?> 
    <div class="label_container"> 
     <div class="left"> 
     <label for="author" class="label label_name">Name*</label>     
     </div> 
     <div class="right"> 
     <label for="email" class="label label_email">Email*</label>    
     </div> 
     </div> 
    <div class="input_container"> 
     <input id="name" name="author" class="required input_text input_name" type="text" value="" /> 
     <input id="email" name="email" class="required input_text email input_email" type="text" value="" /> 
    </div>   
    <?php endif; ?> 
     <div class="label_container"> 
     <label for="comment" class="label label_comment">Comment</label>     
     </div> 
    <textarea id="comment_box" class="required input_comment" name="comment" cols="40" rows="6"></textarea> 
    <p><input name="submit" class="input_submit" type="submit" id="submit" tabindex="5" value="Submit Comment" /> 
    <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /></p> 
    <input type="hidden" id="redirect_to" name="redirect_to" value="<?php echo get_bloginfo('wpurl');?>/comment"> 
    <?php do_action('comment_form', $post->ID); ?> 
</form> 

我已經要求對所有輸入字段,但它只是工作的註釋文本字段。

任何想法?

+0

你最好在http://wordpress.stackexchange.com上提問。 – 2010-12-13 20:36:03

+0

現在有一個WordPress SE網站?哇,好吧,它在這裏變得非常專業,謝謝你的支持! – theorise 2010-12-13 20:37:18

+0

它在那裏完全死了... – theorise 2010-12-13 20:41:15

回答

2

你可以實際控制從settingsdiscussion tabwp-admin面板中。

務必檢查Comment author must fill out name and e-mail。應該這樣做。

這是你在找什麼?