Why can’t I embed YouTube videos in WordPress?

Share on facebook
Share on twitter
Share on linkedin

About a year ago, WordPress added a feature that made it ridiculously easy to embed content from various sites (like YouTube, Slideshare, Vimeo) into WordPress sites.

How to embed media in WordPress in a second

If you want to embed, for example, a YouTube video in a post, all you do is paste the URL of the video into the editor, unlink it and save/publish. See our ultimate guide to embedding HTML and iframes in WordPress on WPGarage for more info on how this works.

The problem is that it doesn’t seem to work 100% of the time. Luckily, there’s usually a reason for this. So if you’re having trouble embedding media in your WordPress site, see if the following tips help you out.

1. Your WordPress site isn’t set to enable embeds of this kind.

Whenever you set up a WordPress site, you have the option to allow embeds or not. Make sure you’ve chosen this option.

  1. Go to Settings > Media.
  2. Under Embeds check the option: “When possible, embed the media content from a URL directly onto the page. For example: links to Flickr and YouTube.”
  3. Save changes.

2. You aren’t using the right link

It’s possible you aren’t using the right link. For example, maybe you copied the link of a channel instead of an individual video.

Here is an example of a URL that won’t work:

http://www.youtube.com/illuminea#p/u/1/LlSeZIHroNw

Instead, the URL should look something like this:

http://www.youtube.com/watch?v=LlSeZIHroNw

Lets see it work (all I did was un-hyperlink the above link to get the embedded video below):

My mama has so many calories…

Coke and burger discuss who has more calories, only to find out that they’re both frauds. And have mamas.

Man, it’s so easy I could spit!

3. Extra code is messing things up

Maybe extra code is being added to the WordPress editor without you realizing. Try embedding the link into the HTML editor instead of the Visual one. If you see any extra code aside from the link itself, remove it.

4. The YouTube user isn’t allowing embeddings of their media

When someone uploads a video to YouTube, they can choose whether or not others will be able to embed their video around the web. If they chose not to allow it, no matter what you do, you won’t be able to embed it into your site.

Want to know how to change the embedding settings on one of your YouTube videos? Here’s how:

  1. Make sure you’re logged into YouTube (with your Google account).
  2. Click on the arrow next to your username in the top right-hand corner.
  3. Click on My Videos.
  4. Click Edit info on the video you want to edit.
  5. Scroll down to Embedding and click the arrow next to it in order to see the two options.
  6. Choose whether or not external sites will be able to embed your video.
  7. Click Save Changes.

Anything else?

These are the problems we’ve found that prevent the awesome WordPress embed function from working. Have you found any other issues that don’t allow you to embed using links in WordPress?

Subscribe to our Newsletter

Share this post with your friends

Share on facebook
Share on google
Share on twitter
Share on linkedin
Close Menu