How to Easily Embed Videos in WordPress Blog Posts

Share this Story:

 

These days, posts on social media receive better engagements with a video. Hence the need for a tutorial to assist with learning the easy way of embedding videos in wordpress.  In this video, we take a look at How to Easily Embed Videos in WordPress Blog Posts and various errors one could avoid to get that perfect engagement from a post.

To start with, Videos generally help draw attention to your site and are a great way to boost user engagement on posts and pages when placed there. These videos can take up a large amount of space if you upload them directly. Sometimes you may not have the required permissions to post the video in its RAW FORM (depending on the  decisions of your service provider). Which is why we recommend embedding them. In this video, we will show you how to easily embed videos in WordPress.

 

WordPress comes with an auto-embed feature to make embedding videos on your site a simple process. For YouTube, you would start by going to the video you are wanting to embed and copying the URL in the address bar. Log in and edit the post that you would like the video embedded on and paste the URL there.

 

Your WordPress site should automatically change the link into a video in your editor and you should be able to move it as you would be able to move text. WordPress allows you to embed more than just videos from YouTube such as embedding tweets from twitter.

 

For embedding tweets from twitter you would want to go to where the tweet is located and if it is on a page you would want to click the drop-down arrow for the specific tweet and copy the link to the tweet. Go back to the post or page you are editing and paste the link there. Just as with the Youtube link it should automatically transform the link into an embed in your editor.

 

Instagram works using the same method where you visit the post directly and copy the URL on the page. When you paste it into your WordPress post editor and your site will attempt to transform it into an embed similar to YouTube and Twitter.

Furthermore, this link https://wordpress.org/support/article/embeds/ gives a wider view of embeds. According to the link.It’s super easy to embed videos, images, tweets, audio, and other content into your WordPress site.

 

Usage # Usage

To embed a video or another object into a post or page, place its URL into the content area. Make sure the URL is on its own line and not hyperlinked (clickable when viewing the post).

 

For example:

 

Check out this cool video:

That was a cool video.

WordPress will automatically turn the URL into a YouTube embed and provide a live preview in the visual editor.

 

Another option is to wrap the URL in the “embed” Shortcode.

 

// NOTE: Remove space between ‘[‘ and ’embed’ when you try.

[ embed width=”123″ height=”456″]http://www.youtube.com/watch?v=dQw4w9WgXcQ[/embed]

If WordPress fails to embed the URL, the post will contain a hyperlink to the URL.

oEmbed # oEmbed

The easy embedding feature is mostly powered by oEmbed, a protocol for site A (such as your blog) to ask site B (such as YouTube) for the HTML needed to embed content from site B.

oEmbed was designed to avoid the need to copy and paste HTML from the site hosting the media you wish to embed. It supports videos, images, text, and more.

Does This Work With Any URL? # Does This Work With Any URL?

No, not by default. WordPress will only embed URLs matching an internal whitelist. This is for security purposes.

Tutorial credits:.https://youtu.be/c0y9OvLIsh8

And https://wordpress.org/support/article/embeds/

 

 

Share this Story: