The other day I made a post with a link to a YouTube video. I tried to embed it using the code that YouTube supplies but this resulted in the blog looking like someone had taken a sledge hammer to it… and no video.

Today Charlie Beckett was asking how to do this for his POLIS blog so I’ve been looking into it. If you look at my earlier post you’ll see that it is now working but it’s a bit fiddly. I followed instructions posted by Matthias Zeller Memento which involves turning off the visual rich editor while you make the post. I’ve found that you only need to worry about your personal settings so a revision of the instructions would be:

  1. Login to WordPress admin
  2. Go to Users
  3. Uncheck ‘Use the visual rich editor when writing’
  4. Go to Write >> Write Post
  5. Type your post
  6. Paste the ‘embed’ code for your YouTube video in the write box (copied from YouTube)
  7. Publish

And then repeat 2&3 to turn the visual editor back on!