How to embed a video in your WordPress.com-hosted blog

I didn’t realize that embedding a video in a WordPress.com-hosted blog is so easy until I tried it. I guess my initial impression of not being able to install any plugin in my WP-hosted blog was mentally blocking me from even trying it.

In my company’s self-hosted WP sites, we have to install plugins to add video embedding functionalities.

Actually, I just accidentally hit the Add Video icon when adding a new post.  When pressed, the icon popped up a new window displaying the familiar (to me, anyway) shortcodes in embedding YouTube and Google videos.

Wow! I exclaimed. So, these video-embedding plugins are already built into my blog. Excitedly I searched YouTube for a test video clip which I could embed here. And I have this video titled “Sydney Sites” at http://www.youtube.com/watch?v=N3qY3pP1ARg which I am using here for the same reason that I want to help promote Sydney.

So, how do you embed a video? Here are the steps:

1. When in Add New / Edit Post mode, click on the Add Video icon to open an Add Video window.

2. Select the URL tab. On the Video URL, enter the video URL.

3. Click the Insert into Post button.

The video shortcode with the entered URL is generated and entered onto your post. The URL without the space after [ and before ] looks like this for a YouTube embedded video.

[ youtube=http://www.youtube.com/watch?v=N3qY3pP1ARg ]

Here is the video generated by the above steps:

How do you resize the video?

Just add the parameter &w= (w for width) and &h= (h for, you guessed it, height) to the shortcode like:

[ youtube=http://www.youtube.com/watch?v=N3qY3pP1ARg&w=600&h=425 ]

and you get a resized video like this:

or like this, if you want it smaller with w=200 and h=125:

There are tutorials found in WordPress.tv on how to embed YouTube videos. Search also “video embedding” in WordPress.com and you will find several posts where WP users narrate and share their experiences.

This is just one of them.

Advertisements