Archive

Posts Tagged ‘Wordpress Embeds’

Auto Embeds in WordPress 2.9

December 23rd, 2009 2 comments

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)
Get Adobe Flash playerPlugin by wpburn.com wordpress themes