As we all know, videos bring life to our website and are a great way to boost user engagement on our site. In this article, we will learn to easily embed videos in any WordPress blog.
WordPress comes with a great feature called auto-embeds. It allows WordPress to automatically get the embed code for videos from popular video hosting sites like YouTube, Vimeo, CollegeHumor etc.
All we need is to paste the video URL into the post editor and make sure that the URL is in it’s own line and not clickable (hyperlinked). If we are using visual editor, then WordPress will immediately fetch the embed code and display the video inside post editor otherwise we can now save our post and click on the preview button to see the video embed in our post.
As we said, that was very easy.
WordPress can only do auto-embeds for few white-listed service providers. For other websites we still have to obtain an embed code and then paste it in our blog posts.
Here is a list of white-listed service providers for auto embeds in WordPress.
- Speaker Deck
- WordPress plugin directory
Isn’t uploading videos to my wordpress easier?
Well we can upload videos to our own server, but we do not recommend to do so as videos take a lot of server resource.
And imagine, our video got tons of traffic, then our site is more likely to crash. Secondly, we will be missing out the traffic from YouTube users. So it is recommended to pick a third party site such as Youtube, Vimeo etc to upload our videos and display in our blog by embeding it.