WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to Turn Off Related YouTube Videos in WordPress

How to Turn Off Related YouTube Videos in WordPress

Last updated on November 25th, 2014 by Editorial Staff
174 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Turn Off Related YouTube Videos in WordPress

While YouTube is a great platform to upload and share videos, often small businesses try to avoid it because of the related videos that it shows. Sometimes these related videos may promote a competitor or endorse something that you do not agree with. Recently, one of our users asked us how to remove related videos from the end of an embedded Youtube Videos. In this article, we will show you how to turn off related Youtube videos in WordPress.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Note: We advise our users to never directly upload videos to WordPress, instead they should use video sharing sites like YouTube and Vimeo to save bandwidth and ensure a better user experience.

Related videos turned off in a YouTube video embedded in a WordPress post

Manually Turn Off Related YouTube Videos

YouTube allows you to manually trun off related videos when embedding a video in WordPress. Simply add ?rel=0 at the end of your video URL like this:

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

WordPress uses oEmbed to get the embed code from YouTube. Since we have appended the URL with ?rel=0, it fetches an embed code with suggested videos or recommended videos turned off.

Automatically Turn Off Related YouTube Videos in WordPress

If you embed a lot of YouTube videos on your website, then you may want to simplify the process by using the automatic solution that disables related Youtube videos on the entire-site. All you need to do is install and activate Hide YouTube Related Videos plugin.

There are no settings for you to configure for this plugin because it works out of the box. Just add your YouTube URL in a post like you would normally do, and the plugin will make sure that the oEmbed code obtained by WordPress has related videos turned off. It also clears your oEmbed cache and all YouTube videos you added earlier will also stop showing related videos.

We hope this article helped you turn off related videos when embedding YouTube videos on your site. For feedback and questions please leave a comment below or join WPBeginner on Google+.

174 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

39 Comments

Leave a Reply
  1. Joffry says:
    Jan 22, 2019 at 5:31 pm

    Hi there,

    That plugin doesn’t excist anymore and it looks like YouTube nowadyas (Januari 2019) is ignoring the (?rel=0).

    Is there another solution available of not showing the related videos?

    Reply
    • WPBeginner Support says:
      Jan 23, 2019 at 1:50 pm

      Not at the moment but we will keep an eye out for alternatives for this article.

      Reply
  2. Paweł says:
    Dec 4, 2018 at 3:18 pm

    It is no longer avaible or the “engine” has been changed.

    Reply
  3. Sandra R. says:
    Feb 9, 2017 at 5:06 pm

    Hi,
    This was a good fix and it worked but now my autoplay doesn’t work. Any suggestions on how to make the embedded video autoplay without any related videos at the end?

    Thanks,
    S

    Reply
  4. roberto says:
    Nov 29, 2016 at 10:58 am

    thank you so much! I tried the plugin and it didn’t work but this worked fine. Thank you! It works on mobile devices aswell

    Reply
  5. Chris says:
    Aug 22, 2016 at 12:10 pm

    The code rel=0 etc does work however it also then stops the video from playing on mobile devises. Also the plugin docent work on the updated version of wordpress. So does anyone have a solution?

    Reply
  6. Grace says:
    Apr 25, 2016 at 5:59 pm

    None of the solutions in this post worked for me. On further research, I discovered this plugin: Hide YouTube Related Videos

    Install. Activate. Done.

    [happy dance]…

    Reply
  7. Eliza says:
    Apr 20, 2016 at 10:49 am

    Thank you very much! This was very useful.

    Reply
  8. Jen Audetat says:
    Mar 7, 2016 at 12:50 pm

    How do I make this work for multiple videos?

    Reply
  9. Mia says:
    Feb 14, 2016 at 5:32 pm

    Oh my gosh, thank you so much! I tried the plugin and it didn’t work but this worked instantly. Thank you!

    Reply
  10. Mike says:
    Jan 15, 2016 at 3:59 pm

    I have a few YouTube videos on my site, where I’d like to remove the related videos. I tried all the suggestions listed in previous comments by adding ?rel=0 or &rel=0 at the end of the URL, and nothing seems to work.

    Any ideas on why it wont’ work, or suggestions to make it work?

    Reply
  11. Derek says:
    Sep 16, 2015 at 6:06 pm

    I added the plugin. It works just fine on my pc, but for some reason I’m still seeing the related videos photo on my mobile phone. How can I stop this as well?

    Reply
  12. Isabel says:
    Sep 15, 2015 at 1:28 pm

    I have a youtube video embedded into revolution slider. I’ve tried to add the code ?rel=0 but it wont work. After I entered the code it will still show the previews of other videos at the end of the video being played.

    Reply
    • Mike says:
      Jan 18, 2016 at 11:19 am

      Hi Isabel,

      I am having the same issue as you are with YouTube videos being embedded into revolution slider. I’ve tried exactly what you stated in your comment (?rel=0 and &rel=0), and it doesn’t work for me. Were you able to find a solution to your issue?

      Thanks,
      Mike

      Reply
      • Tyler says:
        Apr 16, 2016 at 5:35 pm

        Not sure if you have found the answer to this already, if not here is what worked for me.
        -Open the slider you want to work on and add a video layer.
        -Then in the video settings (if not there yet double click the video you want to edit) got to the “Arguments” tab. Mine looked something like this

        hd=1&wmode=opaque&showinfo=0&ref=0;

        -In that tab add &rel=0 before the ; to make it look like this

        hd=1&wmode=opaque&showinfo=0&ref=0&rel=0;

        -Save and test the video.

        Reply
  13. Tom Nordlund says:
    Sep 9, 2015 at 6:05 pm

    Since you’ve disabled full screen mode, I can’t see the text in the video that you’re using to disable related videos.

    Reply
  14. Peggy says:
    Jun 22, 2015 at 9:24 am

    I’m using my YouTube URL within a WordPress content slider. I’ve added the code listed above and I’ve installed the plugin, but no luck. Related videos still show. My guess is that it is because of the slider – any thoughts?

    Reply
  15. Sacha says:
    Mar 30, 2015 at 5:04 am

    Thanks for the tip!

    Reply
    • Lam Truong says:
      Apr 15, 2015 at 12:21 pm

      i used Hide YouTube Related Videos in my site but related Videos still present.
      Help me !
      I use plugin Featured Video Plus in my site

      Reply
  16. Erin K. Geyer says:
    Sep 23, 2014 at 12:56 pm

    Actually you have the code a bit wrong. You can’t use the “?” more than once in a URL. The character “?” means that you’re about to start appending variables in a query string. So ?v=XXXXXXX is where you set the first variable, and then if you want to append more variables you have to use the “&” character. So you append &rel=0 because it is the second variable to be appended to the query string.

    So it should look like this: http://www.youtube.com/watch?v=XXXXXXXXX&rel=0

    Reply
    • Shiaroi Tripura says:
      Jan 3, 2016 at 11:40 am

      Many sincere thanks Erin K. Geyer.

      Reply
  17. mikeb says:
    May 28, 2014 at 3:34 pm

    perfect – thanks for the tip on the plugin – does exactly what I needed

    Reply
  18. MPS says:
    Feb 25, 2014 at 3:13 pm

    I am trying to use this tip on wordpress 3.8.1, but it is not working. Front end is showing video URL in plain text. Any suggestion?

    Reply
    • WPBeginner Support says:
      Feb 25, 2014 at 3:51 pm

      if you are trying it on localhost, then please try it in a staging environment or live server.

      Reply
      • MPS says:
        Feb 26, 2014 at 10:03 am

        Thanks for the reply. I am using it on staging environment. You can see the page here:
        http://ks.rghospitalludhiana.com/ustad-alla-rakha-gurupurnima-2013/

        If it helps, I can email you the login access.

        Reply
        • WPBeginner Support says:
          Feb 26, 2014 at 12:33 pm

          Did you try switching to a default theme, or by turning off all your plugins. You can also try wrapping YouTube url in [embed] [/embed].

    • Mike says:
      Dec 11, 2014 at 5:04 pm

      Try adding this to the end of your URL: ?rel=0&amp

      Reply
      • Laurette says:
        Nov 11, 2016 at 12:35 pm

        This worked perfectly after struggling the whole afternoon to find a solution – THANK YOU!!

        Reply
  19. James Messick says:
    Feb 6, 2014 at 11:53 am

    The latest version of the plugin mentioned does not seem to work with WordPress 3.8.1.

    Reply
    • WPBeginner Support says:
      Feb 6, 2014 at 9:49 pm

      We see no problem at our end.

      Reply
  20. Theresa says:
    Jan 4, 2014 at 8:23 pm

    Your tip, of course, worked! Thank you.
    Is there a way to prevent the pop up ads that want to appear at the start of the video?

    Reply
    • WPBeginner Support says:
      Jan 6, 2014 at 3:33 pm

      We don’t understand what you mean by popup ads?

      Reply
  21. cowboy Mike says:
    Nov 17, 2013 at 12:39 pm

    Hi,
    I tried this tip and it did not seem to work for me. At the end of the video it still shows suggested videos in the video player. The code I used;

    http://youtu.be/uglBWOEXOtA?rel=0

    Happy trails, Mike

    Reply
    • WPBeginner Support says:
      Nov 18, 2013 at 5:53 am

      It should work only when embedded on your site not on YouTube. Also try using full video URL as shown in the article above.

      Reply
  22. Jim says:
    Nov 17, 2013 at 8:41 am

    This just doesn’t work for me. When I paste the link to my videos, they embed just fine. When I add the ?rel=0 to the end, then my page shows the url in plain text.

    I do have the privacy setting for my videos set to unlisted. I changed one to public hoping that would allow the ?rel=0 to work, but it didn’t seem to make a difference.

    Any ideas why it won’t work on my video? I don’t really want to use the plug-in, there’s only 7 videos on my site.

    Reply
  23. Carol Butler says:
    Nov 13, 2013 at 10:58 am

    Have to thank you for always having a tidbit that makes things better easily! Thanks!

    Reply
  24. Karen says:
    Nov 13, 2013 at 9:22 am

    Excellent information! I’ve been using a plugin to do this – but this bit of code is a much better & leaner solution.

    Reply
  25. Jeremy says:
    Nov 13, 2013 at 9:10 am

    Hmm… I think YouTube gives you an option to uncheck “Show suggested videos when the video finishes” at the embedding sharing options. Or am I not seeing something here?

    Reply
    • WPBeginner Support says:
      Nov 13, 2013 at 6:46 pm

      Jeremy it does if you are selecting the embed code from YouTube. However, since WordPress uses oEmbed you don’t need to copy paste <iframe> embed code any more. Most users just paste the video URL from their browser’s address bar and add it in the post. You can still use the iframe embed code if you want.

      Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
PushEngage
PushEngage
Increase your website traffic & revenue with push notifications. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
WPForms Logo
WPForms Coupon
Get 50% off WPForms, the most beginner friendly WordPress contact form plugin available in the market.
Complianz
Complianz GDPR Coupon
Get 15% OFF on Complianz GDPR premium WordPress privacy suite plugin.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.