There are lots of ways to embed a YouTube video in WordPress. But several of the ways will make the code inside of your post vulnerable to “breaking” later on. Here’s a simple method that won’t get your code broken. Here’s the basic code you’ll want to insert:
[youtube=http://www.youtube.com/watch?v=JaNH56Vpg-A]
To add width and height, here are the variables:
[youtube=http://www.youtube.com/watch?v=JaNH56Vpg-A&w=640&h=385]
[…] I can imagine this one coming into core WordPress at some point as it’s just so useful. You want to embed a YouTube video but you’d rather not put in all of that nasty “iframe” code. Here’s an example of the YouTube embed code and how to use it: Embedding YouTube in WordPress. […]