Home » Labs » Embeding SlideShare into WordPress without Plugins  

Embeding SlideShare into WordPress without Plugins


Filed under Labs

SlideShare is used for sharing presentations.It supports PDF’s, Videos and Webinars.Here is a good method for slideshare presentation, which can automatically embed your videos. Following will explain how to add slideshare to WordPress oEmbed without using a plugin.

Just open your theme’s functions.php file and add the following block of code to it. It will work fine with most latest versions of WordPress.

<?php
// Add 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');
 ?>
Tags:

Posts you may like: