Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add Videos and More in WordPress Comments with oEmbed

Editorial Note: We earn a commission from partner links on WPBeginner. Commissions do not affect our editors' opinions or evaluations. Learn more about Editorial Process.

Do you want to add videos, images, files, and other content to your WordPress comments?

Allowing commenters to upload files, add YouTube links, embed a Tweet, or share images can make your comment section more engaging. It can also help you understand the context of a comment to better assist your readers.

In this article, we will show you how to add videos, images, and more in WordPress comments with oEmbed.

Add videos in WordPress Comments with oEmbed

Why Add Videos and Other Content in WordPress Comments?

Allowing visitors to attach videos and other files in comments can improve the commenting user experience. 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.

Additionally, it 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 and foster a stronger sense of community.

That being said, let’s find out how you can add videos, images, and other content in WordPress comments with oEmbed.

Adding Videos and More in WordPress Comments

WordPress doesn’t allow users to upload content in WordPress in the comments by default. But the good news is you can do it using DCO Comment Attachment.

This plugin supports images, videos, documents, and audio files. It also has an oEmbed feature to embed links from Facebook, Twitter, and other social platforms.

Note: You may notice that the plugin hasn’t been tested with the latest WordPress versions. However, we’ve tried it, and it works. It remains the best plugin for this purpose, so we still recommend it.

You can read more about using untested WordPress plugins in our opinion piece. If you notice that there is a better plugin for the job, then please feel free to let us know in the comments.

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.

The DCO Comment Attachment WordPress plugin

What you need to do first is set the maximum upload file size that the user can upload.

Huge files can increase page loading times and affect your WordPress site’s performance. To prevent slow loading time, it’s a good idea to put in the maximum upload file size that your WordPress hosting provider allows.

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.

Multiple upload settings

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.’

DCO Comments Settings plugin page and Save Changes button

Most of these settings are self-explanatory, so it’s worth taking the time to go through them. When you are 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.

Uploading videos and more in WordPress with oEmbed

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.

A Facebook video, embedded in the WordPress comment section

Bonus Tip: Boost Your Comment Engagement With Thrive Comments

Besides allowing users to upload files in the comment section, another way to boost engagement is with Thrive Comments.

After trying many of the available comment plugins, we think that Thrive Comments offers some of the most powerful engagement features so far.

Thrive Comments

For example, it lets you add a post-comment action like directing users to a custom thank you page or showing them a related post. This can make users stay on your website longer and even convert if you run a business.

Additionally, you can allow users to vote, like, or dislike comments to make the discussion more exciting.

If you are interested in seeing Thrive Comments in action, then you can check out the following articles:

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.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

9 CommentsLeave a Reply

  1. 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!

  2. 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.

  3. 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.

  4. Marina says

    Is it possible to upload CAD-files (dwg, cde etc.) or other specific file types using this plugin?

Leave a Reply to Robert Heston Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WPBeginner Assistant
How can I help you?

By chatting, you consent to this chat being stored according to our privacy policy and your email will be added to receive weekly WordPress tutorials from WPBeginner.