2010-12-16 82 views
1

我希望答覆textarea始終可見,而不僅僅是當用戶點擊評論鏈接(由comments_popup_link生成)。WordPress的:如何保持回覆/評論框默認打開

我已經使用了這個並繪製了一個空白 - 1個帖子建議使用comments_template()而不是comments_popup_link但這不起作用。這似乎應該是直截了當的,但我無法弄清楚 - 有人可以幫忙嗎?

謝謝!

回答

1

嘗試使用comment_form();而不是comments_popup_link();.

http://codex.wordpress.org/Function_Reference/comment_form

+0

謝謝 - 對不起,但我應該提到我也想讓評論出現 - 但再次感謝至少提出了評論框。有任何想法嗎? – Steve 2010-12-16 20:17:44

+0

wp_list_comments(); - http://codex.wordpress.org/Function_Reference/wp_list_comments 你的朋友是WP Codex頁面底部的「相關功能」參考。 :) – aendrew 2010-12-16 20:42:50

+0

好的 - 我得到了答案 - comments_template在你注意到之前的註釋時工作: $ withcomments = true; comments_template(); – Steve 2010-12-16 20:44:20

1

感謝aendrew您的幫助 - 最後的代碼我曾經讓我的評論功能的工作是:

$ withcomments = TRUE; comments_template();