简体   繁体   English

我如何像在single.php中一样在author.php中发表评论?

[英]How can I have comments in author.php like in single.php?

Is their any plugin or a workaround that will allow a registered user to comment into author.php ? 他们的插件或解决方法是否允许注册用户对author.php进行评论? Just like there is the comments template into single.php but I want that in author.php 就像在single.php中有注释模板一样,但我希望在author.php中有

Thank you 谢谢

I don't believe there is such a plugin out there, though, never have researched about this. 我不相信那里有这样的插件,但是从来没有对此进行过研究。

However, you might get around this by creating a page for each author, maybe? 但是,也许可以通过为每个作者创建一个页面来解决此问题,也许吗?

I don't know about such a plugin, you might consider to ask at wordpress answers as well or searching through the plugin directory . 我不知道这样的插件,您也可以考虑在wordpress答案上询问或在插件目录中搜索。

Comments in wordpress need a post they are assigned to. Wordpress中的评论需要将其分配到的帖子。 Authors aren't a post, so a workaround could be to create a post for each user or a custom post type with comments and assign one per user. 作者不是帖子,所以一种解决方法是为每个用户创建一个帖子,或者为一个带有评论的自定义帖子类型创建一个帖子,然后为每个用户分配一个。 Then integrate the comments template in author.php by referencing that post of the post-type by the user. 然后,通过用户引用帖子类型的帖子,将评论模板集成到author.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM