0
我試圖恪守關於修改註釋表單(位於here)外觀的說法,但我無法讓它正常工作。儘管我應該改變它的參數數組,但是出現了默認的註釋表單。WordPresspress comment_form()不會接受我的論點
在模板中,我有:comments_template('mycomments.php');
則...
<?php
//inside my mycomments.php file
$comment_args = array (
'fields' => array('author', 'email'),
'must_log_in' => true,
'title_reply' => 'Review this product',
'label_submit' => 'Submit',
);
comment_form($comment_args, $post->ID); ?>
難道我做錯了什麼?
你會得到什麼錯誤? – seferov 2012-03-15 14:57:54
沒有錯誤。我只是得到了默認評論表單:「留下一個回覆...」 – emersonthis 2012-03-15 16:46:27