RSS

Embedding CNN videos in WordPress

19 Mar

In a recent post, I had issues embedding a CNN video clip into the body of the post. I’ve been able to embed YouTube & Vimeo clip rather easily. So I did a lot of digging and found a page in which the author was able to embed video from CNN!! I asked him to post the html of the link and he provided it to me as:

I then attempted to just replace my url from the link that CNN gives you into the formula above…but that didn’t work (by the way, there is a space after “cnnvideo” and the rest of the code). Then I realized, that the single quotes before and after the url should be double quotes. I also noticed that CNN’s link that they give you, doesn’t have the “www” in the url. Making these changes to the code, it now works!! CNN clips are viewable in WordPress!!!

Case in point…here you go!!

 

Advertisements
 
14 Comments

Posted by on March 19, 2012 in blog

 

Tags: , , ,

14 responses to “Embedding CNN videos in WordPress

  1. Dickjutsu

    May 24, 2012 at 5:55 am

    Thanks! It’d be nicer if the code was in a box that you could copy/paste though.

    Sucked to have to retype everything by hand, but thanks for finding the solution to my problems for me, either way. 🙂
    ~RCS

     
    • ChicagolandTim

      May 28, 2012 at 9:08 pm

      Dickjutsu,

      I agree…it would be nice if WordPress did that, or even if CNN would put an embed code for WordPress on their videos. However, seeing that WordPress is still free, I guess we have to go through a few hoops to get things the way we really want them to be. I find that I have to learn a little bit of code to truly get my blog the way I want them. In so doing, I figure that I’d share that info along, because I’m sure someone else will want to do it too. It also helps me when I haven’t posted a blog post in a while, remember how to do something more than just post text. You may want to either bookmark this post if you find you’re linking other CNN videos or repost it on your blog (please give me credit) so that you can remember later on.

       
      • Mr WordPres$uccess

        July 13, 2013 at 10:16 pm

        I believe that Dickjutsu was referring to the fact that you used an image to show the code on this page (I could be wrong but that’s what struck me before I got down to the comments section). You can use a plugin like Crayon Syntax Highlighter instead to allow us to easily copy the code snippet you put on this page. Thanks for the tip but, after reading Glenn Robinson’s advice I saw that CNN has the embed code now.

         
      • amandadhines

        August 21, 2013 at 8:43 pm

        Hey! I tried it but it didn’t work for me. Cnn gives me the version. Could you help me figure this out?

         
      • ChicagolandTim

        October 19, 2013 at 10:14 pm

        I can try my best Amanda. What are you trying to do exactly? What video are you trying to use on WordPress?

         
      • amandadhines

        November 3, 2013 at 6:18 pm

        I’ve figured it out. 🙂 Thanks! Also there is an updated blogging platform made just for bloggers called the Blog Beast which is much easier to use than WordPress.

         
      • ChicagolandTim

        January 18, 2014 at 9:54 am

        Glad you figured it out!

         
  2. Chris Montoya

    September 25, 2012 at 11:03 pm

    Not really working for me. Tried all suggestions above…may not work with the latest version of WP?

     
    • ChicagolandTim

      September 27, 2012 at 3:40 pm

      I’m not so certain that it’s WordPress that’s the problem, as the video above still plays. My guess is that you may be having an issue with the right code from CNN, as they tend to offer several options. Play around with it a bit…you may get it! If you want me to take a look, send me the link to the video and I’ll see if I can get the right code that’ll work in WordPress (no promises though, as I’m rarely even on WordPress anymore!).

       
  3. Glenn Robinson

    December 23, 2012 at 1:32 am

    Thank you Tim!
    I got it to work by pasting in the URL from CNN’s embed code, which is available after clicking share from the CNN video.

     
  4. tobilu

    February 18, 2013 at 4:36 pm

    hi there, I’ve tried to embed this in to my blog but it still does not seem to work. Please can you copy the exact code that I need to use. Many thanks in advance!

     
  5. Anshul

    March 19, 2013 at 2:53 pm

    This is very helpful. Thank you.

     
  6. bambi vincent (@bambivalent)

    October 30, 2013 at 11:44 am

    Try embed.ly

     
    • ChicagolandTim

      January 18, 2014 at 1:09 pm

      I’ll have to give it a shot. Thanks for the suggestion!!

       

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: