Media

Videos » YouTube

, ,

Visit a video page on YouTube. Copy the URL from the address bar.

videos-youtube-video-url

In your blog’s Dashboard, go to Posts->Add New or Pages->Add New. Click on the Add Video button on the Upload toolbar.

videos-add-video-button1

Click the From URL tab. Paste the YouTube video URL into the Video URL box and type a Title. Then click the Insert into Post button.

videos-youtube-insert

The YouTube video shortcode will be inserted into your post. Publish the post and the video will look like the one below.

Additional Options

You can specify the width and height of the embedded video by appending &w=...

or &w=...&h=...to the shortcode. It will automatically adapt to your theme’s content length and give you preferred dimensions.

You can obtain a high quality version of the video by appending &fmt=18

You can disable related videos by appending &rel=0

You can turn on the search box by appending &showsearch=1

Examples:

To embed the video with default width and height adapted to your theme:

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

To specify the width and height explicitly:

[youtube=http://www.youtube.com/watch?v=H2Ncxw1xfck&w=320&h=240]

To specify the width only:

[youtube=http://www.youtube.com/watch?v=H2Ncxw1xfck&w=320]

To play the high quality video:

[youtube=http://www.youtube.com/watch?v=H2Ncxw1xfck&fmt=18]

To play the high quality video with specific width and height:

[youtube=http://www.youtube.com/watch?v=H2Ncxw1xfck&w=480&h=360&fmt=18]

To hide the related videos from appearing after the video is done:

[youtube=http://www.youtube.com/watch?v=H2Ncxw1xfck&rel=0]

To show the Youtube search box:

[youtube=http://www.youtube.com/watch?v=H2Ncxw1xfck&showsearch=1]

↑ Table of Contents ↑

Video

Watch the “Embedding YouTube videos into your WordPress.com posts” video from WordPress.tv.