WordPress.org

Ready to get started?Download WordPress

Forums

Embed youtube video not working (14 posts)

  1. Paul
    Member
    Posted 5 months ago #

    Hi,

    I'm trying to embed a youtube video on my site, but when I save changes it appears only as a URL (scroll right to the bottom of the page to see).

    I went to this WordPress Support page which says you only have to paste in the URL and it should automatically embed, but it isn't.

    FYI, I'm using a child theme of Superhero, and trying to embed with the PageBuilder plugin (I've tried it on a normal page too and the same problem persists).

    I'm sure it's something simple, but any help will be massively appreciated!

  2. esmi
    Forum Moderator
    Posted 5 months ago #

    Are you sure that you are adding the correct url - ie the url of the video and not the code that YT provides.

  3. Paul
    Member
    Posted 5 months ago #

    Wow, thanks for the amazingly fast response! This is the link I'm adding:

    http://www.youtube.com/watch?v=vBASpyfyAyA&safe=active

  4. esmi
    Forum Moderator
    Posted 5 months ago #

    That's the wrong url. Try http://youtu.be/vBASpyfyAyA

  5. Paul
    Member
    Posted 5 months ago #

    Still no joy. Is there supposed to be a dot in the middle of 'tube'?

  6. Paul
    Member
    Posted 5 months ago #

    When I load the video in youtube, the url that comes up is the one I initially put. Also the WordPress Support page suggests a similar syntax (ie, including watch?v= and &safe=active...

  7. esmi
    Forum Moderator
    Posted 5 months ago #

    Is there supposed to be a dot in the middle of 'tube'?

    Yes

  8. Paul
    Member
    Posted 5 months ago #

    Ok... well it still doesn't work!

    I've tried pasting the url into the Add Media thing (in visual editor), and this works but only gives me the option to have a text hyperlink, and then it will take me to the page.

    I'm trying to use the Responsive Lightbox plugin, which says you need to embed the video into the page and it will automatically make a lightbox pop-up for it.

    Regardless of the plugin, I have read that you're WordPress is supposed to automatically embed videos when you just add the url.

    Very confused!

  9. Just to cross it off the list try wrapping the YouTube URL in [embed]...[/embed] like so in the post.

    [embed]http://www.youtube.com/watch?v=vBASpyfyAyA[/embed]

    See if that fixes it.

  10. Paul
    Member
    Posted 5 months ago #

    Thanks Jan, tried it and no luck unfortunately. At least this time the url isn't just appearing as plain text. But it's just blank - no video embedded...

  11. swagsgalore
    Member
    Posted 5 months ago #

    Try this approach, this works for me.
    '[youtube=http://www.youtube.com/watch?v=cw2zQKKbfPU]'

    Also you can see how I have innovatively added the you to my web site on each item page, how to on helping our customers install the curtains we sell.

    [Link removed]

  12. That can only work if you have a plugin that handles the [youtube shortcode.

    Paul try deactivating all of your plugins, switch to the Twenty Fourteen theme and then edit that post with this text.

    [embed]http://www.youtube.com/watch?v=vBASpyfyAyA[/embed]

    I'm hoping that works because then it would point to a plugin or theme conflict.

  13. Stoo42
    Member
    Posted 2 months ago #

    I know this thread is a bit old now, but I had the same issue and found a solution that fixed my problem that no one else seems to have mentioned.

    Basically I run my own wordpress server from home. I had a situation where I had a power outage and the wordpress server came back up BEFORE my dhcp server. Now linux is smart, it gave the same IP address, so everything should be working, right?
    Sadly... DNS wasn't working.

    So, my issue was that if the wordpress server cannot see youtube, then it will not embed the video. Once it has embedded the video once, it will stay embedded, which is why old posts work.
    My guess is that wordpress needs to go to youtube to verify the clip and verify the sizes/settings on the clip in order to embed properly. It does this at the time you save your blog post. If the server cant see youtube, then the embed will always fail, no matter what tags you put around it.

    Fix the servers access to youtube, click "update" on your posts affected, and the embed should start working again. :-)

    Of course this is easier if you have access to your server... If you're in a hosting situation, I know some web hosts may not allow their servers direct internet access, or may have changed their policies which would mean embedding breaks. I guess a support call to your hosting provider is your only option in this instance. :-(

  14. chadelliott2012
    Member
    Posted 6 days ago #

    Of course this is easier if you have access to your server... If you're in a hosting situation, I know some web hosts may not allow their servers direct internet access, or may have changed their policies which would mean embedding breaks. I guess a support call to your hosting provider is your only option in this instance. :-(

    This fixed my problem. I have a two wordpress accounts each hosted by two different servers. One server just would not work, and then I tried the other after reading your post and it worked instantly.
    My guess is that most of everyone's issues are probably server side. Hopefully Paul sees your post and mine.

Reply

You must log in to post.

About this Topic