Embedding YouTube Videos, Flickr Images and more in WordPress 2.9

WordPress 2.9 has greatly increased the ease of embedding videos, images and other types of content. You are now able to display videos on your site from, for example, YouTube simply by entering the url of the YouTube video as plain text in a WordPress page or post. It is also possible to similarly embed videos from Vimeo, DailyMotion, Google Video and other video sites or embed images from Flickr and Photobucket. Embedding articles from Scribd or polls from PollDaddy is equally staightforward. A more comprehensive list of sites that you can embed from using this method is available at http://codex.wordpress.org/Embeds .

The example displayed below shows the post content in the admin (4 urls entered as plain text on a separate line – one from Flickr, one from Scribd, one from YouTube and one from PollDaddy) and the next two screenshots display the output on the front end of the site (a Flickr image, a Scribd article, a YouTube video and a PollDaddy poll).

oembed in the wordpress admin

embedded flickr and scribd content in wordpress using oembed

embedded youtube and polldaddy content in wordpress using oembed

This is all possible in WordPress 2.9 through it’s support of the oEmbed protocol. This protocol enables your site to query another site for the code needed to embed parts of its content.

By default you are only able to embed content from a list of sites approved by WordPress. This can be extended by using the oEmbed Discovery plugin or, for developers, using the template tags wp_oembed_add_provider() (for allowing embedded content from an oEmbed-enabled site) and wp_embed_register_handler() (to enable embedded content from a non-oEmbed site).

If you would, however, prefer to prevent links from being converted to embedded content, this feature can be turned off under Settings > Media. There you will need to deselect the options labelled ‘Attempt to automatically embed all plain text URLs’ and ‘Attempt to embed content from unknown URLs using oEmbed’.



Related Posts

  • Google to Redesign YouTube, Again

    Rumours have been flying around about Google’s plan to redesign video sharing website YouTube. YouTube’s current web design is relatively poor in comparison with that of Hulu. The problem with the site is its apparent lack of revenue. Though YouTube remains the most popular online video site across the globe, it still fails to turn [...]

  • Traffic Generation Part 4 – Fun With Twitter

    Twitter is a very popular social site, where its users set up profiles about themselves and then network with others. It is very similar to Facebook. People “subscribe” to your profile, and then receive an update from you every time you make a post to your profile. Imagine, if you are selling something, how nice [...]

  • Traffic Generation Part 10 – Press Release Distribution

    Press releases are a fantastic way to get the word out about your website quickly. The best place to submit press releases through is PRWeb, located here: http://prweb.comPRWeb offers a variety of ways to distribute your press release, ranging from free to very expensive. If you are serious about your web business, you may want [...]

Find out more about Juno style Wordpress web design
Find out more about Juno style Magento web design
Find out more about Juno Blinds
Remote control and electric blinds by Controliss

Return to web design news.

Leave a Comment