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:
To add width and height, here are the variables:
[…] 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. […]
Have you ever thought about creating an e-book or guest authoring on other websites?
I have a blog based on the same subjects you discuss
and would love to have you share some stories/information. I
know my readers would value your work. If you are even remotely interested, feel free to shoot me an e-mail.