Do you want to allow users to add attachments in WordPress comments? By default, WordPress comments are limited to text however you can allow users to upload attachments like images and gifs to make comments more fun. In this article, we will show you how to allow users to add attachments in WordPress comments.
Upon activation, you need to visit Settings » Discussion page and scroll down to ‘Comment Attachment’ section to configure the plugin settings.
Comment Attachment plugin allows you to choose file types, maximum file size, and how to display those attachments on your website.
You can also choose where to show the attachment upload form (before or after default comment form fields).
If attachment is an image, then you can select image size to display, and whether you want it to be linked to the original file.
Allowed File Types:
The plugin allows you to select which file types you want to allow. By default, it allows users to upload images in jpeg, gif, and png formats.
You can also enable support for PDF, Doc files, spreadsheets, presentations, audio, and video file types.
However we recommend keeping it to images only because audio / video can be very resource intensive for your WordPress hosting.
Don’t forget to click on the save changes button to store your settings.
You can now visit your website and see the ‘upload attachment’ field in WordPress comment form. Try uploading files to see how they appear in the comments.
If you want to change the layout of your comment form, then check out our guide on how to style WordPress comment form.
You can see attachments uploaded by users when moderating comments in WordPress like this:
If you don’t like an attachment, then you can simply click on the ‘Delete Attachment’ link below the comment.
We hope this article helped you learn how to allow users to add attachments in WordPress comments. You may also want to see our list of 12 vital tips and tools to combat comment spam in WordPress.