2010-12-16 39 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();