sandywp / plugins / dco-comment-attachment
DCO Comment Attachment
Allows your visitors to attach files with their comments
Ready in seconds.
v2.4.0 5,000+ installs WP 4.6+ PHP 5.6+

What you get inside
8 screens-
Examples of attachment types.
-
A commenting form with an attachment field.
-
List of comments in the admin panel.
-
Screen for editing a comment in the admin panel.
-
Plugin settings page.
-
An example of a lightbox with the Simple Lightbox plugin.
-
An example of a drag and drop support.
-
An example of the new comment notification email.
About this plugin
DCO Comment Attachment allows your visitors to attach images, videos, audios, documents and other files with their comments. They will also be able to automatically embed links from Youtube, Facebook, Twitter and other services in the comment text.
With plugin settings you can:
- Limit the maximum file upload size.
- Make an attachment required.
- Specify whether the attachment will be embedded or displayed as a link.
- Enable/Disable autoembed links (like Youtube, Facebook, Twitter, etc.) in the comment text.
- Select an attachment image size from thumbnails available in your WordPress install.
- Link a thumbnail to a full-size image with lightbox plugins support (see FAQ for details).
- Open a full-size image in a new tab or link thumbnail to the attachment page.
- Enable/Disable multiple upload.
- Combine images to gallery.
- Select an attachment image size for the images gallery.
- Restrict attachment file types.
- Decide who will be able to upload attachments: all users or only logged users.
- Manually moderate comments with attachments.
You can also:
- Add, replace or delete an attachment from a comment on the Edit Comment screen.
- Attach an unlimited number of attachments to the comment in the admin panel.
- Delete an attachment from a specific comment or bulk delete attachments from comments on the Comments screen.
- Display attachments attached to comments to the current post (or a specific post) with the
[dco_ca]shortcode. You can also filter by type. See FAQ for details.
Attachments are uploaded to the WordPress Media Library and deleted along with the comment (if this is set in the settings).
REST API is supported.
DCO Comment Attachment is also available on GitHub.
Questions
- What lightbox plugins are supported?
DCO Comment Attachment tested with:
* Simple Lightbox
* Easy FancyBox
* Responsive Lightbox & Gallery
* FooBox Image Lightbox
* FancyBox for WordPressFeel free to create a new topic on support forum if you need integration with another plugin.
- How to use the [dco_ca] shortcode?
Without attributes specified, the
[dco_ca]shortcode will display all attachments attached to current post.You can filter attachments using the
typeattribute. By default it isall. Also supported:image,video,audioandmisc.
You can specify one value[dco_ca type="image"]or multiple values, separated by commas[dco_ca type="video,audio"].You can also display attachments from the comments of another post using the
post_idattribute.
For example,[dco_ca post_id="45"], where45is the ID of the specific post.You can also combine these attributes. For example,
[dco_ca post_id="45" type="image"]will display all images attached to comments to the post with ID 45.
sandywp / also on the shelf
Try another plugin
5.0 · 20K+ installs
Generate PDF from Your Form Submissions and Download/Email Them
4.9 · 10K+ installs
Redirect attachment pages or return a 404 error for them based on the parent post status.
5.0 · 10K+ installs
Completely remove "attachment" pages for WordPress media. Improve SEO and prevent conflicts between page and image permalinks.
Spin up a real WordPress site in seconds.
Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.