Back in July 2010, YouTube announced a new way to embed videos on your websites. But unfortunately, I’ve always faced problems while trying to embed videos in my WordPress posts.
Try this:
1> Go to any YouTube video.
2> Get the Embed code (which will be wrapped up in <iframe> — </iframe>),
3> Paste the code in your WordPress HTML, switch to Visual mode and switch back to HTML mode. You’ll notice that the entire YouTube code will be missing :).
Currently I’m using version 3.1.2 build and this problem still persists. I’m not sure if this has something to do with WordPress or iframes.
Solution: Workaround for this problem
The simplest work around for this problem is, instead of embedding YouTube code wrapped up in iframes, use the old embed code.
1> Click on “Share” –> and then on “Embed”. By default, you’ll notice the code wraped in iframe:
2> Scroll a little down and you’ll notice a couple of options and one of them will be : “Use old embed code” and you’ll see the code will change.
After making your selection, copy and paste the embed code from the text box and you’ll notice results as per your selection.
I don’t like old embed code, cause it opens in new window when you click on the video.
Does anyone have any other solution?