Beginner's Guide for WordPress / Start your WordPress Blog in minutes

How to Add Videos and More in WordPress Comments with oEmbed

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.

Add videos 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.

The DCO Comment Attachment WordPress plugin

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.

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

How to manually moderate comments with file 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.

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

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.

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. 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. 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. 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. Is it possible to upload CAD-files (dwg, cde etc.) or other specific file types using this plugin?

Leave A 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.