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 helps build a community.

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

Add videos in WordPress Comments with oEmbed

Why Add Videos and Other Content in WordPress Comments?

Letting your visitors attach files in comments can be beneficial in certain situations. For instance, people can share more information about the issue they’re facing by recording a video or sharing screenshots.

This makes it easier for your support team and other people in the comment thread to understand the problem a user is facing and provide the best solution.

Besides that, adding videos and other content in the comment section helps create more engagement on your WordPress site. It offers commenters the flexibility to upload different types of content and help build a community.

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 embed videos from YouTube and other social platforms in the comment section.

However, a WordPress plugin makes it super easy to upload content in WordPress comments using oEmbed. oEmbed lets you to easily embed videos, slides, and other services without dealing with the ugly embed codes.

For this tutorial, we’ll be using the DCO Comment Attachment plugin. It’s a free plugin that lets users attach images, videos, documents, audio, and other files in the comment section.

The best part about DCO Comment Attachment is that it automatically embeds links from Facebook, Twitter, Facebook, and other social media platforms.

First, you’ll need to install and activate the DCO Comment Attachment plugin on your website. If you need help, then please refer to our step-by-step guide on how to install a WordPress plugin.

Once the plugin is active, you can head over to Settings » DCO Comment Attachment from your WordPress admin panel and customize the settings.

Edit DCO comment attachment settings

You can set a maximum upload file size in the plugin settings, enable the option to make the attachment required, and automatically embed attachments.

Besides that, there are also options to change the size of images that can be uploaded and choose from different thumbnail options.

You can also allow your visitors to upload multiple files and choose different file types for images, audio, video, documents, and spreadsheets that people can attach in the comments.

Multiple upload settings

If you scroll down, there are more settings that you can change in the DCO Comment Attachment plugin. For instance, you can only allow logged-in users to upload attachments in the comments.

When you’re done with the settings, you can go ahead and click the ‘Save Changes’ button.

DCO Comment Attachment Admin panel settings

Next, you can visit any WordPress blog post or landing page on your website to see the options to add videos and attachments in the comments section.

Add videos to WordPress comment

Now, whenever a user adds a video link from YouTube or any other platform in the comments, it will automatically embed them in the comments.

oEmbed comment preview

We hope this article helped you learn how to add videos and more in WordPress comments with oEmbed. You can also look at our guide on how to subscribe to WordPress comments and the best WooCommerce plugins for your store.

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.

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

8 CommentsLeave a Reply

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

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

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

Leave a Reply to Tyler Simpson 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.