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

How to Easily Embed Videos in WordPress Blog Posts

Do you want to embed videos in your WordPress blog posts? Videos bring life to your website, and they are a great way to increase user engagement.

WordPress makes it super easy to embed videos from video hosting sites like YouTube, Vimeo, Facebook, Twitter, and many others.

In this beginner’s guide, we will show you how to easily embed videos in WordPress blog posts, pages, and sidebar widgets.

How to easily embed videos in WordPress blog posts (4 ways)

Why Embed Videos in Your WordPress Blog Posts?

Adding videos to your WordPress blog is a great way to capture your visitor’s attention and boost engagement and conversions.

Videos help to increase the time your users spend on your website, and some visitors may even prefer to watch a video than reading written text.

Here at WPBeginner, we embed videos into our most popular WordPress tutorials.

Should You Upload Videos Directly to WordPress?

Well, you can, but we don’t recommend you do so.

Most small blogs use shared WordPress hosting accounts, and videos can take up a lot of server resources. If your video gets a lot of traffic, then your website is more likely to crash.

Secondly, you are missing out on traffic from YouTube users and other video hosting sites.

YouTube is not only the biggest video hosting site, but it is also the world’s second most popular search engine and the second most popular social network right after Facebook.

If you don’t want to upload your videos to YouTube, then you can use other platforms like Vimeo, Jetpack Video, Wistia, and more.

For more details, see our post on why you should never upload a video to WordPress.

That being said, let’s show you how you can embed videos in WordPress blog posts, step by step. Simply use the quick links below to jump straight to the method you want to use.

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

Method 1. Embedding Videos in WordPress Blog Posts and Pages Using Block Editor

WordPress comes with a great feature called auto-embeds which allows your website to automatically get the embed code from popular video hosting services like YouTube, Vimeo, etc.

All you need to do is paste the video URL into the WordPress editor.

For example, you can copy the YouTube URL for a video that you want to embed.

Next, edit the WordPress post or page where you want to add the video, and simply paste the URL in the content area.

Paste video embed code in block editor

As soon as you paste the video URL, WordPress will fetch the embed code and display the YouTube video inside the content editor.

You can now save your post by clicking the ‘Update’ or ‘Publish’ button to see the embedded video in your live post.

Wasn’t that easy?

After you have added the video, you can change its settings by clicking on the video in the editor and making changes from the popup toolbar.

You can adjust the video width, change the alignment, and more. You can also add a caption and preserve the video’s aspect ratio on mobile devices.

Edit video display options in block editor

WordPress can only do auto-embeds for white-listed video services. For other websites, you will still have to obtain the embed code and then paste it in your blog posts.

Here is a list of white-listed video services for auto embeds in WordPress:

  • Amazon
  • Animoto
  • Cloudup
  • CollegeHumor
  • Crowdsignal
  • Dailymotion
  • Facebook
  • Flickr
  • Hulu
  • Imgur
  • Instagram
  • Issuu
  • Kickstarter
  • Meetup.com
  • Mixcloud
  • Reddit
  • ReverbNation
  • Screencast
  • Scribd
  • Slideshare
  • SmugMug
  • Someecards
  • SoundCloud
  • Speaker Deck
  • Spotify
  • TED
  • Tumblr
  • Twitter
  • VideoPress
  • Vimeo
  • WordPress.tv
  • YouTube

If you want to add a video from a website outside this list, then you will need the full HTML embed code for the video.

Simply copy the HTML code provided by the video website and paste it inside the ‘HTML’ block in the editor.

Add video embed HTML code

To learn more, see our beginner’s guide on how to edit HTML in WordPress code editor.

Method 2. Embedding Videos in WordPress Using the Old Classic Editor

If you are still using the old WordPress classic editor, then you can embed the videos the same way.

Simply copy the URL from a video hosting service like YouTube, and paste it in the editor. If you are using the visual editor, then you will see a preview of the video.

Embed video in classic editor

However, you will not be able to use the width adjustment and other options that you can use in the new WordPress block editor.

Make sure you click the ‘Update’ or ‘Publish’ button to make your changes live.

Method 3. How to Embed Videos in WordPress Sidebar Widgets

Just like a WordPress post or page, you can also embed videos in WordPress sidebar widgets.

Simply go to Appearance » Widgets in your WordPress admin area and then click the ‘Plus’ add block icon.

After that, search for ‘Video’ in the search bar.

Then, you can click on the block for the type of video you want to add. For example, YouTube, Vimeo, TED, and more.

Add new video block to widget

Next, you need to paste your video URL into the box, click the ‘Embed’ button, and it will automatically be added to the widget area.

Then, all you have to do is click the ‘Update’ button, and the video widget will now be live on your website.

Enter embed URL and click update

Now, you can visit your website to see the video live. The size of the video will automatically scale based on the size of your widget area.

To learn more, see our guide on how to add and use widgets in WordPress.

Widget video embed example

Method 4. Using WordPress Video Embed Plugins to Embed Videos

By default, you don’t need to use a plugin to embed videos in WordPress. However, you may want to use plugins to improve the video viewing experience on your website.

The following are a few plugins that you may want to try.

1. Smash Balloon YouTube Feed Pro

Smash Balloon YouTube Feed Pro

Smash Balloon YouTube Feed Pro is one of the best YouTube video gallery plugins for WordPress in the market.

It allows you to automatically embed all of your YouTube channel videos in a customizable gallery format. It automatically imports new videos, combines feeds, can add live streaming, embed a YouTube playlist, and more.

Plus, it includes likes, shares, comments, and reactions, which can help to boost your social proof.

YouTube channel feed example

There’s also a free version of YouTube feed plugin available you can use to simply add your YouTube channel feed to WordPress.

To learn more, see our guide on how to show latest videos from YouTube channel in WordPress.

You can also use the Smash Balloon YouTube feed plugin with the Social Wall plugin that combines all of your social media content from Facebook, Instagram, Twitter, and YouTube on a single page.

2. YouTube Subscribe Bar

YouTube Subscribe Bar

YouTube Subscribe Bar shows a YouTube subscribe button below your YouTube video embeds in WordPress. It also fetches your YouTube subscriber count to add social proof and encourage more users to subscribe to your channel.

We first created it to promote WPBeginner’s YouTube channel on this website. Many of our users asked us to share how we did this, so we decided to release it as a free plugin.

3. Lazy Load for Videos

Lazy Load for Videos

Lazy Load for Videos solves the problem of loading video embed scripts from external websites, which has an impact on website page load speed and performance.

Instead, it only loads the embed code when the user clicks on the play button.

By the way, you won’t need this plugin if you use the Smash Balloon YouTube Feed plugin because it has built-in caching and delayed loading for the video player.

We hope this article helped you learn how to easily embed videos in WordPress blog posts. You may also want to see our guide on how to register a domain name and our expert picks of the best business phone services for small businesses.

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

119 CommentsLeave a Reply

  1. i have added YouTube video links in my WordPress blog post. now I want to remove that video link
    so my question is after removing that links does it create any problem in that post indexing in google search console. because that video is appearing in video indexing page of google search console

    • Unless we hear otherwise, removing a video link should not cause an issue with your post indexing.

      Admin

  2. When I upload a video using the blocks wordpress tells me I must upgrade my account for $96/year. I’ve been using wordpress since 2012. What gives?

  3. Hi, In case others may have the same problem I did with embedding a video from Rumble, after many trying many different things, I figured out how to do it by accident lol.

    If it is your own video, use the Embed Code but only the link within the src= portion.

    If it is not your video, using the “EMBED” button of the video, copy and use the “Embed IFRAME URL” link provided in the Embed pop dialog.

  4. Super stuff guys. I was struggling for 2 days with LearnDash LMS on WP and a premium European hosting provider. I used the method of Custom HTML embed and it worked just fine. It’s 3.00am in the morning where I am at and am smiling because of you :). Thanks a lot, this content is truly for a beginner like me with an erratic learning curve.

  5. I tried to upload videos from youtube, but it shows all related videos. I tried to put some restrictions also with functions like control=0, autoplay=1, ?rel=0, but none of these worked. I tried to upload videos from vimeo also, but there also related videos displayed.
    Than I tired to upload videos directly from my pc, but that made my site slow.
    Any suggestions how to use embeded vdeos of html from my pc.

    • We do not have a recommended method for embedding a video from your home computer as a server at the moment.

      Admin

  6. hi can i add food youtube videos on my wordpress food theme?……..i am serching for a food theme on wordpress that supports food videos.
    thanks

    • You can add videos to any WordPress theme, where you add it would determine how difficult it would be to achieve.

      Admin

  7. Thanks for the nice information…
    I have a problem with url embed function in wordpress. When I add a url to embed a different post from my website ,everhting seems fine in preview mode. I mean I am seeing thumbnail and a excerpt of the post which is exactly what I want. But, when ı update the post there is only a simple link instead what is shown in preview mode. I need your help if possible.
    Best Regards

  8. I would like to have a website that is purely a Video Gallery but more like YouTube.
    Do you think Plugins can do that?
    Can you recommend some Plugins for me?
    Thank you,

  9. Hi. i am using embeds block to embed my YouTube video into the post. In the edit post window, I can see the video is getting embedded/I can see the preview of the video. But, once i publish the post or preview it, I could only see the link of the video and not the preview.
    I am not using any plugins for embedding the videos.
    Could you please help?

  10. Hello,
    i used to embed video on wordpress by simply past the link.
    Now, Google search console detect that there are some problems in the two pages I have with video embed.
    I’m talking about mobile usability.
    Is there a way to fix this problem or a plugin that will fix it ?

    • It would depend on how and where you added the videos from, using the YouTube embed as an example should not cause an issue unless you’re using an iframe embed that specifies width.

      Admin

  11. I am unable to embed a YouTube video using the embed block editor (I tried both the embed block and the Youtube block). I’ve already tried pasting from the youtube studio link, from the URL in the address bar, and from the “share” button. Is there something I’m not doing right?

    • You may want to try disabling your plugins to ensure this isn’t a possible conflict between one of your plugins and the embed.

      Admin

  12. I have a youtube video on my WordPress ecommerce site – when the video ends I simply want it to end so that my customers aren’t curious to go see other videos. No “ads” for other youtube videos unrelated to my site- I seem to recall that there is some code you can put at the end of the video URL that will accomplish this. thanks

  13. Hi, I’ve used the embed code in the HTML editor then when I switch back to visual it appears, however when I try to preview the post the video does not show up at all.

    • If it is only when trying to preview the post, you may want to try saving your draft beforehand to ensure that it is not due to the preview not being saved properly

      Admin

  14. Really useful information. Can you please help me to know, if i add video on WordPress post will effect on site speed or particular post speed.

  15. “ll you need to do is paste the video URL into the WordPress editor.”

    What a ie. Even putting the youtube link into the embed block doesn’t work. I wish WordPress would stop giving incorrect directions. Nothing seems to work when it comes to putting a simple short youtube link (of my own 2 minute video into wordpress. WP? …. IDK about this.

    • You may have a plugin or similar that could be preventing the embed from being added correctly, have you tried using the video block that was added with the Gutenberg/block editor?

      Admin

  16. I’m trying to embed a link from Vimeo but come up with the following error:

    Sorry, this content could not be embedded.

    There is no issue with the video, so not sure why there’s an error.

    Any suggestions would be appreciated!

    • If this method didn’t work, have you tried the video block to embed using that? If the error is in a Vimeo embed then the video owner may not allow embedding of the video.

      Admin

  17. I cannot get this to work at ALL and I have a blog with 10,000 followers so far. Why won’t this work on my WordPress editing page??????

    • If you’re using the new block editor then there is an embed or a video block that you can use if that is the issue.

      Admin

  18. I tried to embed url from yotube, it does work but copied video seems too large. I wanted smaller feature and I couldn’t get it smaller in no possible way. I tried same from Vimeo and was satisfied with the size. Do you have any similar experiences?

  19. I am pasting in the URL for our YouTube video and it does not auto embed. I did this exact process twice yesterday with no problems. Tried the embed code, logged out and logged back in but it still won’t auto embed.

    Any ideas as to why this has suddenly stopped working?

  20. Well what do you do when you you insert the URL, the image auto generates and then clips the rest of the paragraph instead of adjusting to fit?

  21. When I embed a YouTube code and add on my post, the button on click on and watch the video is usually not in the middle of the post.. How do I fix that pls?

  22. Hi..I copied the Youtube URL and it shows properly on the desktop version but doesnt show anything in the mobile version? Am I doing something wrong?

  23. I am embedding facebook live videos into our ministry website and am trying to figure out spacing issues. If you look at the link below, you’ll notice that underneath the video some of the text is cut off and when you look at it on an iphone you’ll notice there’s a TON of white space after each video.

    HOW do I set it to be automatic that it just fits? Is there a way? I’d like it to show up correctly regardless of the pc or iphone or android etc.

    HELP!!!! Please

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.