Wednesday 23 November 2016

How to Allow Attachments in WordPress Comments

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.

Comment Attachments for WordPress

First you need to install and activate the Comment Attachment plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you need to visit Settings » Discussion page and scroll down to ‘Comment Attachment’ section to configure the plugin settings.

Settings page for comment attachments

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.

Allowed file types

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.

Comment form with attachment upload field

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:

Review and delete attachments when moderating comments in WordPress

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.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Allow Attachments in WordPress Comments appeared first on WPBeginner.



source http://www.wpbeginner.com/plugins/how-to-allow-attachments-in-wordpress-comments/

No comments:

Post a Comment