How to embed YouTube or Google Videos in WordPress

By Alastair McDermott | November 8th, 2006

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 wordpress.com 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.

Comments

What about Google Video?

[googlevideo=(video url)]

e.g.

[googlevideo=http://video.google.com/googleplayer.swf?docId=-2137166486548313034&hl=en-GB]

I didn’t, nope, good call!

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
Thanks!

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?

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

Al.

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?

Hey Fundraiser,

Askimet. Spam Karma 2. I love them :)

I wrote up a short post about how to stop comment spam on your WordPress blog over on my other blog – check it out.

If you find that post useful, please link to it – I’m looking for incoming links for my new venture :D

Cheers,
sportcrazy.

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.

 

Leave a Comment