Do you want to add videos, images, files, and other content to your WordPress comments?
Allowing users to upload files, add YouTube links, embed a Tweet, or share images in the comment section helps increase engagement and builds a sense of community.
In this article, we will show you how to add videos, images, and more in WordPress comments with oEmbed.
Why Add Videos and Other Content in WordPress Comments?
Allowing visitors to attach files in comments can improve the user experience in lots of different ways. For example, visitors can share more information about the issue they are having by recording a video or sharing screenshots.
This can help your support team and other visitors understand the problem and suggest the best solution.
It also gives commenters the flexibility to upload different types of content, such as their own photos or a link to their favorite YouTube video. This can boost engagement on your WordPress website, improve the visitor experience, and keep people on your website for longer.
That being said, let’s find out how you can add videos, images, and other content in WordPress comments with oEmbed.
Add Videos and More in WordPress Comments
WordPress doesn’t allow users to upload videos, images, PDFs, and other files in the comments by default. It also doesn’t let you embed videos from YouTube, Facebook, and other social platforms.
The good news is that you can allow visitors to upload content in WordPress comments by using DCO Comment Attachment. This plugin supports images, videos, documents, and audio files. It also automatically embeds links from Facebook, Twitter, and other social platforms.
First, you will need to install and activate the DCO Comment Attachment plugin on your website. If you need help, then please see our guide on how to install a WordPress plugin.
Upon activation, head over to Settings » DCO Comment Attachment in your WordPress admin panel to customize the plugin’s settings.
Huge files can increase page loading times and affect your site’s performance. To boost WordPress speed and performance, it’s a good idea to limit the upload size by typing it into the ‘Maximum upload file size’ field.
You can also make the attachment mandatory, automatically embed attachments, and choose from different thumbnail options.
After that, you can allow visitors to upload multiple files and support different file types for images, audio, video, documents, and spreadsheets. Simply check the box next to each file type that you want to allow.
If you scroll down, you will find more settings. For example, if you run a WordPress membership site, then you may only want to allow logged-in users to upload attachments in the comments.
You may also want to manually moderate all comments that have attachments. This can prevent spammers and bots from uploading files to your WordPress website.
To moderate comments in this way, simply check the box next to ‘Manually moderate comments with attachments.’
Most of these settings are self-explanatory, so it’s worth taking the time to go through them. When you’re happy with how the plugin is set up, you can go ahead and click the ‘Save Changes’ button.
Now, you can visit any WordPress blog post, and you will see the options to add videos and attachments in the comments section.
Users can also easily embed videos from other platforms like YouTube.
They simply need to paste the URL into their comment, and the WordPress plugin will handle the rest.
We hope this article helped you learn how to add videos and more in WordPress comments with oEmbed. You can also read our guide on how to allow user registration on your WordPress site and see our expert picks for the best contact form plugins.
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.
Syed Balkhi says
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
Robert Heston says
I want a plugin that works like a post in Facebook. I want to drop the URL in it and have it take advantage of the metadata to display the indicated picture with the intro text and while doing that I can add my personal words above it. This would also retain the existing abilities for media players.
Can you make something that can do all that? If so, it would be a true winner.
Michael says
I’m testing adding jpegs to comments. Thanks.
Rick Beckman says
If you style your comment areas with a “max-width” equal to its width, it’ll force videos and images included within it to scale to the proper size.
Of course, accounting for the max-width of nested comments may be a bit trickier.
Marina says
Is it possible to upload CAD-files (dwg, cde etc.) or other specific file types using this plugin?
WPBeginner Support says
No it would only enable support for sites with oEmbed support and whitelisted in WordPress.
Admin
Tyler Simpson says
Is there anyway to integrate this with the YouTube upload API, so a user can upload their video right on the page?
Editorial Staff says
Upload right on what page? Not sure what you are trying to ask here.
Admin
M.Usama Siddiqui says
Thank You very much for this plugin.