How to Disable Related Videos for YouTube Embeds in WordPress

youtube-logoWhen you embed a YouTube video in a WordPress post, it is generally added to illustrate your content. Sometimes your video is the main focal point of the post. Chances are that you don’t want to be sending users to related videos after viewing the embedded one. You want to keep the reader’s attention on your content. The video was meant to be a tool to capture that attention in the first place.

Turn Off Related Videos

Related videos is a YouTube feature that can be a lot of fun when you’re browsing YouTube, but it’s not so helpful on videos you embed in WordPress posts. There are two different ways to turn related videos off, depending on how your WordPress site is set up.

WordPress.com Sites and Jetpack-Powered WordPress.org Sites

On WordPress.com and on self-hosted WordPress sites using Jetpack, you can simply append ‘&rel=0‘ to the end of the YouTube URL to disable related videos at the end of the video.

Normally, you would just grab the URL from the browser window and paste it in on its own line:

youtube-url

On our site we are using Jetpack, so we just append ‘&rel=0‘ to the URL:

http://www.youtube.com/watch?v=xPe4NbWQzkM&rel=0

The output for that is this ridiculously cute video with no related videos at the end:

The same method can also be applied if you opt for the Jetpack shortcode embed. More video customization options can be found in the WordPress.com documentation.

Self-Hosted WordPress Sites Without Jetpack

If you have a self-hosted WordPress site and you’re not using Jetpack, turning off related videos can be done by selecting the embed option directly from YouTube, instead of using WordPress’ oembed feature.

When you’re on the YouTube video’s page, select embed and then uncheck the option that says: “Show suggested videos when the video finishes.

uncheck

If getting the embed code is a bother, you might try using a plugin such as Hide YouTube Related Videos to do this automatically.

This topic tends to be a bit tricky, depending on if you are on WordPress.com, self-hosted with Jetpack or self-hosted without Jetpack. Fortunately, there’s an easy solution for everyone.

5

5 responses to “How to Disable Related Videos for YouTube Embeds in WordPress”

  1. Hi Sarah,
    If I have already embedded, say for example, 40 videos to my website, is there a way I can edit all of the videos so that none of them show related videos at the end (without having to go through each one individually)?

Newsletter

Subscribe Via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.