Embedding YouTube in WordPress Blog

Alice did a wonderful job of explaining how to remove related videos from YouTube videos you embed on a website!

I was having difficulty with related videos appearing with videos I embedded in my WordPress blog.  If you are also having this difficulty, this is what Alice helped me discover. The support page from WordPress explains various coding options depending on what you’d like to do with the video you embed in WordPress.

When I went to my YouTube video and clicked on “share” then “embed”, I made sure the box for “show suggested videos” was unchecked and that the coding had ?rel=0 at the end as shown here:  youtube embed photo

However, when I embedded the video in WordPress, it would drop the ?rel=0 coding, looking like this:
youtube=http://www.youtube.com/watch?v=_hf2WvLNmOM&w=420&h=315
thus playing related videos at the end like is shown here:  (and I while I didn’t mind promoting Market Journal I didn’t want promote Farmville!).

related videos pic

On the WordPress help site, it said

To hide the related videos from appearing after the video is done (add [ ] to the front and back end of this coding):  youtube=http://www.youtube.com/watch?v=JaNH56Vpg-A&rel=0

So I simply went into the “text” tab in the editor instead of “visual”, copied the coding from above and added the correct letters that specified my video while also adding the width and heigth.  In my case this portion of coding was:  _hf2WvLNmOM&w=420&h=315
The coding then looked like
(remember to add [    ] on the front and back ends of coding):
youtube=http://www.youtube.com/watch?v=_hf2WvLNmOM&w=420&h=315-A&rel=0

You can simply copy and paste this coding while adding the specific letters for your embedded YouTube video in the future 🙂  What I mean is the coding after v=

Check out my finished results with no related videos here and thanks to Alice for her help!

About jenreesources

I'm the Crops and Water Extension Educator for York and Seward counties in Nebraska with a focus in irrigated crop production and plant pathology.
This entry was posted in Delivery Strategies, Social Media and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s