Auto Embeds in WordPress 2.9
Note: The following is made available under GPL from http://codex.wordpress.org/GPL. It may be edited a little from its original form, but probably not a lot. There is no guarantee this information is accurate…use at your own risk.
—————————————————–
In WordPress 2.9, it’s super easy to embed videos, images, and other content into your WordPress site. Just type/past the url into your post/page and WordPress does the rest. Make sure that the URL is on its own line and not hyperlinked (clickable when viewing the post).
For example, all I did to add the video below was copy/past the the video url into this post…the url should be on its on line. In the past you would have just seen the link to the video, but from 2.9 onward, WordPress automatically embeds the video in the post.
You can also opt to wrap the URL in the embed shortcode. It will accomplish the same effect, but does not require the URL to be on its own line.
Note: It’s important to make sure the url isn’t hyerlinked when you type/past into the post/page. If so, then you will simply see the link, like below. This is also a good tip if, for some reason, you want to show the link and not the embed.
http://www.youtube.com/watch?v=5nxXsROoBYs
Can I Use Any URL With This?
Not by default. For secutity reasons, WordPress will only embed URLs matching an internal whitelist. By default, WordPress will automatically embed from the following sites…this list will grow over time.
- YouTube
- Vimeo
- DailyMotio
- blip.tv
- Flickr (both videos and images)
- Viddler
- Hulu
- Qik
- Revision3
- Scribd
- Photobucket
- PollDaddy
- Google Video
- WordPress.tv (only VideoPress-type videos for the time being)
Related posts:
- WordPress 2.9 — A Video Demonstration of New Features Tweet In the following video I demonstrate three of, what...

That’s a pretty cool little trick. But how does WP determine what size to use?
For example, I like to make my videos as wide as possible but not extend beyond the content area.
Or if I want a specific size to fit my blog’s content width, do I then simply have to specify the embed code.
@John Hoff – WP Blog Host
I think it just uses the default embed size. If you want a custom size, then you would need to use the embed code as normal.