<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Disabling &quot;related&quot; YouTube videos - Solved before posted</title>
		<link>http://www.themolitor.com/forums/topic/disabling-related-youtube-videos-solved-before-posted</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Disabling &quot;related&quot; YouTube videos - Solved before posted</description>
		<language>en-US</language>
		<pubDate>Tue, 28 Apr 2026 14:31:30 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/disabling-related-youtube-videos-solved-before-posted" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "Disabling &quot;related&quot; YouTube videos - Solved before posted"</title>
			<link>http://www.themolitor.com/forums/topic/disabling-related-youtube-videos-solved-before-posted#post-26549</link>
			<pubDate>Tue, 21 Jan 2014 10:42:22 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">26549@http://www.themolitor.com/forums/</guid>
			<description><p>Thanks for sharing! :-)
</p></description>
		</item>
		<item>
			<title>drkillbot on "Disabling &quot;related&quot; YouTube videos - Solved before posted"</title>
			<link>http://www.themolitor.com/forums/topic/disabling-related-youtube-videos-solved-before-posted#post-26540</link>
			<pubDate>Tue, 21 Jan 2014 10:15:49 +0000</pubDate>
			<dc:creator>drkillbot</dc:creator>
			<guid isPermaLink="false">26540@http://www.themolitor.com/forums/</guid>
			<description><p>I was going to post a question on how to do this, but I figured it out and thought I'd share it with the community.  This may apply to other of Chris' themes with the YouTube shortcode, but YMMV.</p>
<p>YouTube defaults to adding thumbnails of videos they think are related to my content at the end of the video. However, that relation isn't always appropriate, especially with potential employers in mind. The down-and-dirty fix to this is to add "?rel=0" to the end of the ID you enter in the shortcode:</p>
<pre><code>[youtube id=&#34;XYZPDQ?rel=0&#34;]</code></pre>
<p>but you have to do that manually with each video, which is fine if you don't want to disable related videos by default.  </p>
<p>But I did, and since I have a dozen or so videos I'm including, I needed ?rel=0 to be the default.</p>
<p>WARNING: Messing with functions.php can break your site, so proceed with caution! Use this code at your own risk and have a backup of functions.php ready to upload just in case.</p>
<p>In functions.php, look for this line:</p>
<pre><code>$src = &#039;http://www.youtube-nocookie.com/embed/&#039;.$id;</code></pre>
<p>Change it to this:</p>
<pre><code>$src = &#039;http://www.youtube-nocookie.com/embed/&#039;.$id.&#039;?rel=0&#039;;</code></pre>
<p>and related videos will be turned off by default. Just use the standard <code>[youtube id=&#34;XYZPDQ&#34;]</code> shortcode. </p>
<p>To turn off title info as well as related video suggestions, use this code instead:</p>
<pre><code>$src = &#039;http://www.youtube-nocookie.com/embed/&#039;.$id.&#039;?rel=0&#38;showinfo=0&#039;;</code></pre>
<p>I hope this helps someone else out there.
</p></description>
		</item>

	</channel>
</rss>
