WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cannot display youtube video in wordpress 2 (41 posts)

  1. initialbest
    Member
    Posted 8 years ago #

    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.

  2. podcastnyc
    Member
    Posted 8 years ago #

    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>

  3. tauquil
    Member
    Posted 8 years ago #

    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.

  4. S.K
    Member
    Posted 8 years ago #

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

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

  5. tauquil
    Member
    Posted 8 years ago #

    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?

  6. S.K
    Member
    Posted 8 years ago #

    Thanks, tauquil.

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

    Regards,

    S.K

  7. Matt Mullenweg
    Troublemaker
    Posted 8 years ago #

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

  8. AppleG5
    Member
    Posted 8 years ago #

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

  9. initialbest
    Member
    Posted 8 years ago #

    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.

  10. Remco Bron
    Member
    Posted 8 years ago #

    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...

  11. icamp
    Member
    Posted 8 years ago #

    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

  12. gneneres
    Member
    Posted 8 years ago #

    thanks remcobron! your method worked for me.

  13. heimtommy
    Member
    Posted 8 years ago #

    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

  14. ladydelaluna
    Member
    Posted 8 years ago #

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

  15. jabman
    Member
    Posted 8 years ago #

    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.

  16. Devilsoulblack
    Member
    Posted 8 years ago #

    thanks for the tips :)

  17. FestersYourDaddy
    Member
    Posted 8 years ago #

    Done all this, and everything else on this site...NOTHING IS WORKING..!!

  18. technocrat
    Member
    Posted 8 years ago #

    Hey all,

    I drove myself crazy today because I wanted to easily embed YouTube while keeping the WYSIWYG editor turned on. I figured out how and did a write-up. Thought I'd track down fellow frustrated wordpressers and let you know that it's been done, and fairly easily:

    http://geeklimit.com/2006/04/26/embed-youtube-with-the-wordpress-20-wysiwyg-editor/1/

  19. wilderside
    Member
    Posted 8 years ago #

    Since I am hosted on WordPress I can't use the suggested plug-ins. I tried the advice from remcobron, I must amend it to say that to turn off the rich text editor I had to go into Users. But still when I did all that the code disappears when I try to publish.

  20. pigduck
    Member
    Posted 8 years ago #

    I don't understand. If I post the code by podcastnyc it embeds but when i post my own youtube code it doesn't work... why?

  21. pigduck
    Member
    Posted 8 years ago #

    I found out the reason. When you use the embed code ...make sure the links are not highlighted a links.

  22. carl_in_florida
    Member
    Posted 8 years ago #

    Turning off the rich editor in users did it for me

  23. fcanzoniere
    Member
    Posted 8 years ago #

    Hey, I had the same problem and following the abovementioned Icamp's suggestion it worked fine: "...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 ".
    Once it is published you can turn this option on again. You can see how I did it in http://www.hotelblog.es
    Thank you guys for your help!

  24. johnpiercy
    Member
    Posted 7 years ago #

    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 ICAMP ..... that worked for me

    JP

  25. raianoat
    Member
    Posted 7 years ago #

    Have you seen this plugin? I plan on trying it out once I get home.

    http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/

  26. shaarique
    Member
    Posted 7 years ago #

    http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/
    This plugin is really cool. I was desperately searching for support for addding youtube videos and then i found this plugin.

  27. dubyah
    Member
    Posted 7 years ago #

    I'm sure ages ago I found out you could do something like [youtube=http://blablabla] but maybe I dreamt it... as I cant find it again now!

  28. mahalingam
    Member
    Posted 7 years ago #

    youtube video thumbnails are not loaded in wordpress.
    full youtube pages are loaded in thumnail page
    any one help me
    advance thanks

  29. jclayc
    Member
    Posted 7 years ago #

    A friend of mine posted a WordPress YouTube plugin: http://blog.ubrio.us/php/youtube-wordpress-plugin-with-technorati-tags/

  30. invertebra
    Member
    Posted 7 years ago #

    perfect! great tips, thank you all for sharing.

Topic Closed

This topic has been closed to new replies.

About this Topic