Posting YouTube Videos to WordPress Blogs

Because of the way wordpress corrects invalid XHTML this is the best way to post YouTube videos…..

YouTube suggests:


<object height="350" width="425">
<param name="movie" value="http://www.youtube.com/v/rCOx24TsBPI"></param>
<param name="wmode" value="transparent"></param></object> <object height="350" width="425">
<param value="http://www.youtube.com/v/rCOx24TsBPI" name="movie"></param>
<param value="transparent" name="wmode"></param></object>

Convert this to:


<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/rCOx24TsBPI" height="350" width="425">
<param name="movie" value="http://www.youtube.com/v/rCOx24TsBPI"></param> </object>

This entry was posted on Tuesday, January 16th, 2007 at 9:36 pm and is filed under General. You can follow any responses to this entry through the RSS 2.0 feed.


Comments (2)

 

  1. [...] just updated this broken post on Posting YouTube Videos to WordPress, to allow me to post this video of the University of Leicester’s Paternoster lift – many a [...]

  2. [...] may remember many moons ago, I posted about what a bind it could be to put YouTube videos into WordPress Blogs (because WordPress got all excitable and corrected the [...]


What I'm Doing...

@Keiron