WordPress Hack To oEmbed SlideShare Presentations

Here is a function that extends oEmbedding in WordPress. All you need to do is copy-paste the following code in your theme’s function file.

// Adding Slideshare oEmbed
function add_oembed_slideshare(){
wp_oembed_add_provider( ‘http://www.slideshare.net/*’, ‘http://api.embed.ly/v1/api/oembed’);
}
add_action(‘init’,’add_oembed_slideshare’);

Once the code is added, you can embed any slideshare presentation simply by pasting its URL on its own line (new line).

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.