embedding YouTube videos in WordPress Blog?

earlier today I was trying to embed a YouTube video in a WordPress blog and the WYSIWYG editor just couldn’t seem to handle it. Has anyone else had this problem or am I just special? If you have… did you find a way to make it work? I’d love to hear!

9 Responses to “embedding YouTube videos in WordPress Blog?”

  1. Grant August 23, 2006 at 8:41 am #

    Hi Lisa – yep – absolutely had this problem. It’s an issue with tiny_mce, which I use on another CMS and had the same problem…

    If you don’t want to turn the WYSIWYG editor off (which was my solution), I would consider ditching the standard YouTube-generated object/embed tags and go with the “Satay” method:
    http://alistapart.com/articles/byebyeembed

    From memory, this syntax does work with tiny_mce.

    HTH. Grant

  2. Jurriaan Mous August 23, 2006 at 7:36 pm #

    I have included a youtube embed once. I did this in Safari where the Rich text editor didn’t seem to work. Maybe turning of javascript will also help.

  3. Craig August 24, 2006 at 12:07 am #

    Your just special. :)

    It works for me in WordPress 2.0.4, kinda. All I do is select the html editor tool from the toolbar, insert the youtube object in there, add some text above or below, go back to the WYSIWYG and start editing that text I added. I do it like this so I don’t accidently delete my hidden objects. The object doesn’t appear in the editor at all, only showing up when I publish.

  4. Craig August 24, 2006 at 12:14 am #

    Err, actually I just realised I’m running an SVN dump of WordPress. I think it was taken after 2.0.3 and before the 2.0.4 release. Try 2.0.4.

  5. leisa.reichelt August 24, 2006 at 3:57 am #

    hey! thanks for all these suggestions!

    I’m going to have a go at turning off javascript I think and seeing how that goes. Seems like the easiest of all the options so far… stay tuned! :)

  6. Rory August 29, 2006 at 6:51 pm #

    Like someone above said, if you disbale the graphical editor via the options it’ll let you put the code in properly, worked on the first try for me :)

  7. leisa.reichelt August 30, 2006 at 11:57 pm #

    yep. That does the trick. I turned off JavaScript in FireFox, getting rid of the WYSIWIG editor, and I was able to embed the video.

    There was a stray paragraph tag that kept turning up and breaking my layout, but provided I deleted that, everything worked beautifully.

    thanks for your help with this everyone! :)

  8. Kevin September 4, 2006 at 2:45 am #

    I just embedding a bunch of Youtube videos on a new community blg running off WP 2.0 and ran intot he same problems. Guess who turned up as the number one hit when I googled the problem.

    You!

    Congrats… you’ve just made the Web that much more useful :)

  9. leisa.reichelt September 4, 2006 at 6:28 pm #

    cool :) and here I was just having a whinge and looking for some free tech support :)

    yay the internet!