admin管理员组文章数量:1331449
I have a comment form and any one can add comments without creating an account. Now client asking to allow user to upload profile picture from the comment form. Check attached image below.
Any help would be greatly appreciated.
I have a comment form and any one can add comments without creating an account. Now client asking to allow user to upload profile picture from the comment form. Check attached image below.
Any help would be greatly appreciated.
Share Improve this question asked Jul 22, 2020 at 14:46 DivyangDivyang 132 bronze badges1 Answer
Reset to default 0Wordpress doesn't have built-in profile pictures (Avatars) by default. See Settings > Discussion in the menu for available options.
So you may have a few options:
- Use Gravatar, as this is bundled in Wordpress by default and free but would not require a profile image upload button as its managed separately.
- Look for an Avatar plugin that allows for programatically creating an upload button in your Comments template, or one that pre-packs that functionality. There are several Avatar plugins around but I can't be sure that they have the Comment form functionality you are looking for.
- Use ACF to extend the user profile with an image, and then ACF form to allow uploads via the Comments template.
For what its worth - I think allowing members of the public to upload their own images to your website like that is a generally bad idea. I suspect Wordpress agree, which is why they include Gravatar.
本文标签: Upload avatar for post comment
版权声明:本文标题:Upload avatar for post comment 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742241627a2438871.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论