Post YouTube Videos Into Your Wordpress Blog

By John Szram | February 20, 2008

If you're a new visitor here, you can subscribe to receive notices whenever a new post is made. Subscribe now and receive 2 value packed free reports.
Name:
Email:

If you have a Wordpress blog, like this one, you may encounter a slight problem when adding YouTube videos to your posts.

Where To Find The YouTube Embed Code

You might already know that you should paste the embed code from your YouTube video into the code section when creating a post. However, if you then return to the visual editor the code becomes garbled and the video doesn’t display.

How do you do this without installing yet another plugin? Here’s what you need to do:

Step 1 - Write and format your post as usual bearing in mind where you want to place the video. Hit Save.

Step 2 - Turn off the visual editor: In your blog’s admin area, click on “Users” followed by “Your Profile”. You should see the following:

Turn Off Wordpress Visual Editor

You need to uncheck the box next to “use the visual editor when writing” as shown above, then click “Update Profile”.

Step 3 - Paste the YouTube embed code into your post. When you return to edit your post, instead of the option of either visual or code views you will see a window like this:

Editor

Simply paste the YouTube embed code into the appropriate position of your post as shown above and hit publish for your post to go live.

Step 4 - Switch the visual editor back on

Please be aware that if you return to edit this post at any stage, you will need to turn off the visual editor before doing so or the code will become garbled once again and you will need to re-enter your YouTube embed code.

An alternative method is to write and format your post as normal then at the very end, switch to code view, paste your embed code in and hit publish without returning to the visual editor. Again bearing in mind if you wish to return to edit this post at a later date you will need to turn off the visual editor before doing so.

Let me know if you think your method is easier or maybe convince me of the merits of installing yet another plugin!

Comments

4 Responses to “Post YouTube Videos Into Your Wordpress Blog”

  1. Carol Smith on April 18th, 2008 4:03 pm

    OK, so this is a little late. But better late than never.

    I studied this post carefully. It definitely has taken me one step closer to being brave enough to try.

    Yea! Another hurdle to jump.

    Carol Smith

  2. Kevin Flamell on April 21st, 2008 11:51 pm

    Great Blog John,

    Hope you add some more soon,

    Thanks

    Kevin

  3. Lee Jones on May 14th, 2008 9:42 pm

    Hi John

    You probably already know this by now, if you install the latest version of wordpress 2.5.1, the problems you outlined above have all been solved……….

  4. John Szram on May 14th, 2008 10:10 pm

    You’re absolutely right Lee. This is the case now with the new Wordpress release. Thanks for letting my readers know.

    I have the latest release installed on a couple of blogs but I tend to wait until the inevitable “teething troubles” are out of the way before installing on my main site!

    Thank you for your comment.

    John Szram

Got something to say?