slideshare下载
If you have ever spoken in front of an audience, then you probably know what slideshare is. If you haven’t, then slideshare is a place where people upload their presentation slides, so others can see it. Very often these speakers also embed their slides in their blogs. You can either use the slideshare embed code which works fine, or you can make it much easier for yourself by simply adding it to WordPress oEmbed. This would allow you to simply paste a URL of your slideshare presentation, and it will auto-embed just like the Youtube videos. In this article, we will show you how to add slideshare to WordPress oEmbed without a plugin.
如果您曾经在观众面前讲话,那么您可能知道幻灯共享。 如果您还没有幻灯片,那么人们可以在其中共享演示文稿幻灯片,其他人也可以看到它。 通常,这些演讲者还将幻灯片放到他们的博客中。 您可以使用效果很好的slideshare嵌入代码,也可以通过将其添加到WordPress oEmbed中使自己更轻松。 这样一来,您只需粘贴幻灯片演示文稿的URL,就可以像YouTube视频一样自动嵌入。 在本文中,我们将向您展示如何在没有插件的情况下将幻灯片共享添加到WordPress oEmbed。
Update: You DO NOT have to use this tutorial anymore. WordPress 3.5+ has built-in oEmbed support for Slideshare.
更新:您不必再使用本教程。 WordPress 3.5+内置了对Slideshare的oEmbed支持。
Open your theme’s functions.php file or a site plugin and simply paste this code:
打开主题的functions.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');
Thanks to @tammyhart for sharing the snippet with us.
感谢@tammyhart与我们分享摘要。
P.S. want to check out all the presentations that we have given? Then visit WPBeginner’s Slideshare
PS想查看我们提供的所有演示文稿吗? 然后访问WPBeginner的Slideshare
翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-add-slideshare-to-wordpress-oembed-without-a-plugin/
slideshare下载