Support » Fixing WordPress » Cannot display youtube video in wordpress 2

  • Resolved initialbest

    (@initialbest)


    hi

    I can insert the code (from youtube)

    <object width=”425″ height=”350″><param name=”movie” value=”http://www.youtube.com/v/y_FjWNKulNc”></param><embed src=”http://www.youtube.com/v/y_FjWNKulNc” type=”application/x-shockwave-flash” width=”425″ height=”350″></embed></object>

    into the editor but once saved or published, the video cannot be displayed and it makes my site in chaos.

    What shoould I do? Thanks.

Viewing 15 replies - 1 through 15 (of 40 total)
  • podcastnyc

    (@podcastnyc)


    1. Don’t use the rich text editor when dealing with embeds.

    2. Try pasting just the following code into the post:

    <embed src=”http://www.youtube.com/v/y_FjWNKulNc” type=”application/x-shockwave-flash” width=”425″ height=”350″></embed></object>

    tauquil

    (@tauquil)


    From the youtube website (just under where you got the code from):

    (Put this video on your website. Works on Friendster, eBay, Blogger, MySpace!)

    I’m afraid the code is not going to work with your WordPress blog.

    S.K

    (@kichu)


    It works well in my WordPress blog as you can see here:

    http://blog.cyberbrahma.com/2005/12/23/5-second-tomfoolery/

    tauquil

    (@tauquil)


    I stand corrected, thanks for the heads up kichu 🙂

    Was it just a matter of copying and pasting, or did you have to do anything special?

    S.K

    (@kichu)


    Thanks, tauquil.

    Nothing special. Just the good ol’ c&p!

    Regards,

    S.K

    Moderator Matt Mullenweg

    (@matt)


    Try it after turning the WYSIWYG off (under your profile page).

    AppleG5

    (@appleg5)


    If you have TinyMCE (WYSIWYG) running, press HTML there on the small toolbar. Just paste the code in and save the page.

    initialbest

    (@initialbest)


    I got to do it by reverting back to the old trusty text editor.

    If you update the code in the html pop-up, it does not correct the problem.

    Thks all.

    Remco Bron

    (@remcobron)


    Just to make it foolproof:

    To insert YouTube videos in your WordPress blog do the following:

    1. Login to WordPress admin
    2. Go to Options >> Writing
    3. Uncheck borht Users should use the visual rich editor by default & WordPress should correct invalidly nested XHTML automatically
    4. Go to Write >> Write Post
    5. Paste the ’embeddable player’ code for your YouTube video in the write box
    6. Publish video

    That’s all there is to it!

    In my opinion this should also work in the HTML pop-up window in the rich-text editor…but for some reason it doesn’t. Perhaps someone with a little more PHP coding experience can answer or correct this…

    In my case step #2 above was a bit different. Following step #2 only turns off the rich text editor for ‘users’ but if you’re the admin trying to paste the YouTube code you must turn off rich text editing under:

    users>your profile

    thanks remcobron! your method worked for me.

    Hi There!
    I’m using the GENERAL blog of WP. So my site’s address is ***.wordpress.com. I do not have my own: ***.com address, or whatsoever.
    Therefore I dont think I could use any kinda Plug-ins. And my problem is that I do want to have embedded you tube videos in my blog.
    Using you tube’s “Embeddable Player” code and pasting it into my genearl write place/into my HTML writer it just DOES NOT WORK.
    I’ve tried remcobron’s idea as well…no work:(

    If you can, pls help me!
    Thx

    heimtommy – this forum is for people who ARE hosting wordpress themselves… you might want to check the forum on wordpress.com for help there…

    Thanks remcobron. Is there any other way to do this. Seems like a hassle to switch back and forth just to post a vid. But I am glad that I got it working now.

    thanks for the tips 🙂

Viewing 15 replies - 1 through 15 (of 40 total)
  • The topic ‘Cannot display youtube video in wordpress 2’ is closed to new replies.