• I’ve got a fresh install of WordPress – latest version. I just tried to embed a youtube vid in a post (tried with both old and new code). When I press ‘Save Draft’ the video embed code just disappears. If I try ‘Preview Changes’ the ‘Page not found’ page loads as in the following screenshot: http://www.box.net/shared/i9m051nhtsvr0gnlagbo

    If I make other changes ie adding text etc then the pages/posts save fine. I have tried this with several posts and several videos.

    Any got any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)
  • How are you embedding the video?

    http://codex.wordpress.org/Embeds

    Thread Starter robertkay

    (@robertkay)

    Aha. Thankyou. I’ll try just putting the url in rather than the full embed code.

    So… Given I have a bunch of blogs with youtube vids embeded with the old/new style full embed codes (ie iframe, object etc), what happens to these when I upgrade to the latest wordpress. Am I going to have issues editing posts?

    Many thanks for this. So simple but cause a lot of annoyance…:)

    Not sure. It’s probably removing/breaking youtube’s embed code (iframe and such) only when it runs the post/page through kses at the time of publishing/saving. The only way to truly know is by testing. You could take the site with the fewest embedded youtube videos, back it up, then upgrade it. If everything is fine, then you just have to make sure you replace any old embedded code whenever you update a post. If it doesn’t work, then it seems the only way to fix it may be to manually go through every post, make note of the video, upgrade, then reinsert all the videos.

    no problem

    Thread Starter robertkay

    (@robertkay)

    That makes sense. Interestingly, switching off the auto-embed option in the Settings->Media panel does not solve this problem. So basically, for all new posts I’m stuck with the new (admittedly more convenient) auto-embeds. I shall be curious to see how they run with lightbox popups etc. I’ve had issues with Youtube’s new iframe code and had to go back to the old one. Enough musing anyway:)

    Thread Starter robertkay

    (@robertkay)

    OK, so now I’ve run into a related problem. When I do this [embed] thing it works great except wordpress puts a <p> tag either side of the video so I can’t style it (ie center it). There’s no class on it so I can’t get to it via stylesheet. Anyone got any suggestions? I could maybe style <object> tags in style.css but then I’d be stuck with one style for all videos which my client will probably complain about…

    Much ‘preciated,
    Rob

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    If you’re using the HTML editor, you can force this all you want.

    If you’re using the GUI editor (visual) you need to make sure you paste in that code using the plain TEXT paste button (shows up when you expand the visual editor to show the kitchen sink).

    Thread Starter robertkay

    (@robertkay)

    I was using the html editor. My mistake with the tags. Many thanks!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Youtube vids not embedding’ is closed to new replies.