How To Embed YouTube videos in WordPress 2.5.1
Saturday, 17/05/2008 ≅22:03 ©catjdh358 posted a nearly 4 minute long video explaining how to get the cut and paste code from youtube to work for you. I had enough difficulty getting this job done that I had to consult the oracle. So I'll save you four minutes of your life listening to a poorly miked presentation and cut right to the chase:
- Find a video that you want to post on your blog at youtube
- Select the generated <object> tag
- Login to wordpress and select "Profile"
- Deselect the Visual Editor option, select "Update Profile"
- Goto the Write page
- Write and publish your post as normal, pasting the <object> tag as appropriate
- Enjoy the oohs and aaaahs of millions of adoring fans
It's very important that the WYSIWYG editor never sees the <object> tag. It doesn't parse it properly, so the brackets that are supposed to denote a tag get translated into it's numeric entity. This means that your lovingly crafted tag is treated as literal text by WordPress.




















