in on blogging

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!

  1. 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. 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. 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. 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. 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. 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. 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. 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 :)

Comments are closed.