How to embed YouTube or Google Videos in WordPress

It’s not always a simple case of pasting the YouTube or Google “embed code” into your blogs default editor. Sometimes you need to turn off the WYSIWYG bit which is messing up your embed code… don’t worry, it ain’t hard. You only need to do this if you’re hosting your own WordPress blog – if you’re on you can use the [youtube=…] and [googlevideo=…] tags!

In Options -> Writing section of WordPress admin (wordpress-location/wp-admin/options-writing.php)

  • Ensure “Users should use the visual rich editor by default” and “WordPress should correct invalidly nested XHTML automatically” are turned off.

In Users -> Your Profile, down the bottom (wordpress-location/wp-admin/profile.php):

  • Ensure “Use the visual rich editor when writing” is turned off

You can now paste the code in with WordPress mashing it up on you.

Pretty simple, eh? Don’t forget to reverse the setting afterwards, if you’re more of a WYSIWYG blogger.


  1. Hey guys,
    I have an iMac G5 running tiger 10.4.7 and I an having a wierd problem. Whenever I go to a site that has an embedded youtube, flash or some kind of video, there is no sound. If it a quicktime file there is no problem. There is not sound no matter what broswer I use, firefox, camino, safari, or shiira. And keep in mind that about a week ago I was not having this issue.

    Help Would be awesome

  2. Is there any better, or easier blog software out there than this? i need something php based that doesnt kill MySQL. Any techie types on this thread that can point me in the right direction?

  3. Hey Pogo,

    WordPress is pretty damn easy and it’s up there with the best of the best.

    Can you give some details of what exactly you’re trying to set up that’s having trouble?

    I’m pretty techie, despite the sport-theme here πŸ™‚


  4. A few questions from a blog idiot

    How do you keep the spammers from eating you alive? i’ve seen blogs with nothing but spam postings.

    How do you keep some left wing extremist from posting racist or defamatory rhetoric? and if you cant stop them, what are you legally liabel when they do?

    can viruses be posted to blogs?

  5. Hi, I made the leap to hosting my own wordpress blog on my site and I can’t get images to stay up. I loaded it and it appeared but then when I checked it the next day, just the title was up, no image.

    Am I missing a tag or something?

    Thanks, great site BTW.

Comments are closed.