Embed a Youtube video in WordPress blog in 5 steps

by Mahesh Kukreja · 8 comments

in Blogging Tips, Tricks

Step 1 – Write Your Post in WordPress


To add a Youtube video to your blog post, write a new post in your WordPress Admin area. Be sure to leave a blank line where you want the YouTube video to appear in the final, published post on your blog.

Step 2 – Switch to the HTML Editor View


After you’re done entering the text for your post, select the “HTML” tab to switch to the HTML Editor view in WordPress.

Step 3 – Find the YouTube Video that You Want to Embed in Your WordPress Post


Find a Youtube video that you want to embed in the post. Copy the code from the “Embed” box.

Notice that when you click in the Embed text box, the window may expand showing several options you can pick and choose from to customize the video’s appearance within your blog post. For example, you can choose to show related videos, include a border, and change the size. It’s up to you if you want to modify these settings or not. If you do change these selections, the code in the Embed text box will automatically update. Therefore, copy the Embed code after you make any customization changes.

Step 4 – Paste the Embed Code from YouTube into Your WordPress Post


Return to the window where you have your WordPress post open, and click within the HTML editor text box in order to place your cursor at the beginning of the first line where you want the YouTube video to appear within your final, published post. Paste the code here, and then select the “Publish” button on the right side of your screen to publish your post.

It’s important to paste the Embed code just before you hit the Publish button. If you do anything else to your post after pasting the Embed code, the YouTube video may not appear correctly in your final, published post. If that happens, you’ll have to return to the HTML editor, delete the code you pasted, re-paste it and republish your post.

Step 5 – View your post


Visit your blog to view your live post and ensure it published correctly. If not, return to Step 3 and repeat the copying and pasting of the Embed code and republish your post.

Subscribe to our mailing list

* indicates required

{ 7 comments… read them below or add one }

Nile June 19, 2009 at 12:59 am

I get this a lot from clients. Although I love to make money, I want my clients to be able to feel like they can use their site. This is a good resource to share. 🙂


Nomadseo June 19, 2009 at 9:43 pm

Good post, Well done.


kabir November 14, 2009 at 10:01 am

This post will help me lots.
I will try to embed a youtube video in my wordpress blog.
If it works correctly then I will come back again here in your blog.
Untill then ……………
Good luck.


kyle April 18, 2010 at 6:35 pm

Pasting code directly into the HTML section has not be necessary for a while now. Wordpress 2.5 and up doesn’t seem to break the code when flipping back and forth between the visual editor and the html editor.

Using the “Insert / edit embedded media” button under the kitchen sink is the easiest way to handle inserting video. Instead of copying the embed code copy the url or the youtube video from your browser bar and insert it here. Works well.


Admin April 19, 2010 at 4:12 am

Thanks for the update Kyle!


Zeeshan November 28, 2010 at 1:29 am

Thanks for sharing tutorial


Gulam Ali December 16, 2010 at 11:27 am

Thanks for the effort you took to expand upon this post so thoroughly.
Why valid html code is important to your web site’s search engine optimization efforts and consequent high rankings! Such invalid html codes… A single missing bracket in your html code can be the cause your web page cannot be found in search engines… Providentially, there are free services that allow you to check and fix the validity of your html codes.


Leave a Comment

{ 1 trackback }

Previous post:

Next post: