How to Add a YouTube Video to Your Blog Post

36 Flares Twitter 8 Tweet Facebook 21 LinkedIn 3 36 Flares ×

Found a great YouTube video you want to share but you aren't sure how to get it into your blog post?

If you're using WordPress, here's what to do step by step:

1.  Install the WordPress Video Plugin

You can find it at http://wordpress.org/extend/plugins/wordpress-video-plugin/ or by going to "Plugins" -> "Add New" and searching for "WordPress Video Plugin"

2. Find the ID of the YouTube Video

To find the ID of the video you want to embed, go to the video and click the "Share" button below the video. Then look at the shortlink and everything after the http://youtu.be/ part is the ID.

In this case it's: jeT9haiWh8E

3.  Add the shortcode to your blog post and save.

Edit the blog post where you want to include the video using the shortcode:
[*youtube jeT9haiWh8E*]

(without the * - I had to add those so the plugin wouldn't embed the video above)

And that's it!  You'll have an embedded video in your blog post.

Here's this plugin in action:

Comments

  1. Danny
    Twitter: excitedbylife
    says:

    I actually use Window Livewriter for writing all my blog posts. It has a add-video feature built in. Livewriter also downloads your wordpress template look-and-feel so you get to see what your page will look like before you publish it to your blog. You need a Windows deskop of course, not Mac or Linux.
    Danny recently posted… Overcoming Overwhelming Emotions With DBTMy Profile

    • Michelle Shaeffer
      Twitter: MichelleShaeffr
      says:

      I usually blog on my MacBook so I hadn't really explored it, but I think that program came installed on my desktop PC. I'll have to check it out. Thanks for the tip, Danny.

  2. Lisa Rothstein
    Twitter: davincidiva
    says:

    I don't have the plugin and have just used the embed code in my posts — the videos show up and play…but sometimes they disappear! So maybe the plugin will stop this mystery from happening?

    Also, other sites besides youtube have their own players — I like sharing videos from TED, one of which I believe is in my latest post, below.

    Lisa
    Lisa Rothstein recently posted… Creativity is child’s play – Part 1My Profile

    • Michelle Shaeffer
      Twitter: MichelleShaeffr
      says:

      It's the code-eating monster! Seriously though, WordPress' html editor does eat code, especially iframes if it's the YouTube iframe embed version. The older embed code seems to stick around better for me. But I use this code in my functions.php file to stop it:
      function mytheme_tinymce_config( $init ) {
      $valid_iframe = 'iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]';
      if ( isset( $init['extended_valid_elements'] ) ) {
      $init['extended_valid_elements'] .= ',' . $valid_iframe;
      } else {
      $init['extended_valid_elements'] = $valid_iframe;
      }
      return $init;
      }
      add_filter('tiny_mce_before_init', 'mytheme_tinymce_config');

  3. Sheila Atwood
    Twitter: SheilaAtwood
    says:

    Michelle,

    I have been using the old way to embed YouTube video until recently. Now I use the short code – so far so good. But I like the idea of adding the your code in the functions.php. Would you use that instead of the
    plugin?
    Sheila Atwood recently posted… Inbound MarketingMy Profile

  4. Kristina L. says:

    Hi, Michelle,
    this is very useful and very well explained. The steps seem easy to be followed and I am sure that many of the bloggers, especially beginners will find it helpful. Usually, most persons I know use the short code for adding the video, but there are more ways to manage with the video.
    Kristina L. recently posted… Phanfare Coupon CodeMy Profile

  5. Jeremiah Johnson says:

    This is so strange. I was just getting ready to do another post to my blog and I was researching how to add video from YouTube on it. I have never done this before and all I have to say about this is YOU ROCK! I know exactly how to do it now. Thank you so much.
    Jeremiah
    Jeremiah Johnson recently posted… Samsonite Silhouette SpinnerMy Profile

  6. rinkoo wadhera says:

    great info michelle …thanks
    rinkoo wadhera recently posted… How to Read a PoemMy Profile

Leave a Reply to Kristina L. Cancel reply

*

CommentLuv badge
36 Flares Twitter 8 Tweet Facebook 21 LinkedIn 3 36 Flares ×