• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

  • Home
  • Podcast
  • Blog
  • Insiders Club
You are here: Home / Blogging / How to Add a YouTube Video to Your Blog Post

How to Add a YouTube Video to Your Blog Post

By Michelle Shaeffer | 11 Comments

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:

Spread the Love
  •  
  •  
  •  
  •  
  •  

Reader Interactions

Comments

  1. Danny says

    July 29, 2011 at 5:34 am

    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.

    Reply
    • Michelle Shaeffer says

      July 29, 2011 at 9:27 am

      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.

      Reply
  2. Lisa Rothstein says

    July 29, 2011 at 8:13 am

    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

    Reply
    • Michelle Shaeffer says

      July 29, 2011 at 9:26 am

      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’);

      Reply
  3. Sheila Atwood says

    July 29, 2011 at 3:47 pm

    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?

    Reply
    • Michelle Shaeffer says

      August 2, 2011 at 2:55 am

      I go back and forth. I should probably pick one method and stick with it though… LOL

      Reply
  4. Kristina L. says

    July 30, 2011 at 8:11 am

    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.

    Reply
    • Michelle Shaeffer says

      August 2, 2011 at 2:56 am

      Thanks, Kristina. :)

      Reply
  5. Jeremiah Johnson says

    August 3, 2011 at 11:50 am

    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

    Reply
    • Michelle Shaeffer says

      August 4, 2011 at 11:06 am

      Awesome, glad this came at the right time for you. Thanks for commenting, Jeremiah.

      Reply
  6. rinkoo wadhera says

    October 10, 2011 at 7:04 am

    great info michelle …thanks

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

New Articles & Tutorials

  • 7 Tips to Help Optimize Your Online Store to Increase Sales
  • Stop Competing. Start Collaborating. (It’s the secret to escape the zombie-preneur apocalypse!)
  • How Your Current Field Can Help You Enter the Digital Marketing World
  • 5 Simple Ways to Be More Effective as a Solopreneur
  • How to Use Content Intelligence Like the “Big Guys”

Get Daily Business Tips & Inspiration

Get Daily Business Tips & Inspiration

There’s One Thing I Know…

Hi, I'm Michelle. And here's what I know: you're here with a purpose and I can help you achieve it. I write this blog to make sure you've got the tools, tactics, and inspiration you need to make a go of building your passion and purpose into your own successful, profitable business. So, welcome! Stay a while.

Disclosure: Some blog posts, articles or other content on this website contain affiliate links for products or services I recommend.
This means I may receive a commission or other compensation if you choose to purchase something I've shared with you.

Terms of Use | Privacy | Affiliate Agreement | Anti-Spam | External Links | DCMA Policy | Earnings Disclaimer
© 2000-2024.