<?xml version="1.0" encoding="UTF-8"?><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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Display Different Sidebar for Each Post and Page for WordPress</title>
	<atom:link href="http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/</link>
	<description>Beginner&#039;s Guide for WordPress</description>
	<lastBuildDate>Sat, 13 Mar 2010 11:56:04 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Troy</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-10280</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Thu, 04 Mar 2010 22:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-10280</guid>
		<description>I replaced the  with your code exactly in the same spot.  Should I place it somewhere else?</description>
		<content:encoded><![CDATA[<p>I replaced the  with your code exactly in the same spot.  Should I place it somewhere else?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Editorial Staff</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-10273</link>
		<dc:creator>Editorial Staff</dc:creator>
		<pubDate>Thu, 04 Mar 2010 19:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-10273</guid>
		<description>Remember that custom fields are only displayed inside the loop for that specific post. If your code is outside the loop, then you can either run a global wp query to get the custom field, or move this code inside your loop.</description>
		<content:encoded><![CDATA[<p>Remember that custom fields are only displayed inside the loop for that specific post. If your code is outside the loop, then you can either run a global wp query to get the custom field, or move this code inside your loop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-10269</link>
		<dc:creator>Troy</dc:creator>
		<pubDate>Thu, 04 Mar 2010 18:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-10269</guid>
		<description>I have not been able to get this to work.  I have tried the following and always get the default sidebar only:

ID, &quot;sidebar&quot;, true);
get_sidebar($sidebar);
?&gt;

Since I am running WP 2.9.2 I also tried:


ID, “sidebar”, true);
include ($sidebar); ?&gt;

and received error that says: ID, “sidebar”, true); include ($sidebar); ?&gt;  

where the sidebar should be.

Any thoughts????</description>
		<content:encoded><![CDATA[<p>I have not been able to get this to work.  I have tried the following and always get the default sidebar only:</p>
<p>ID, &#8220;sidebar&#8221;, true);<br />
get_sidebar($sidebar);<br />
?&gt;</p>
<p>Since I am running WP 2.9.2 I also tried:</p>
<p>ID, “sidebar”, true);<br />
include ($sidebar); ?&gt;</p>
<p>and received error that says: ID, “sidebar”, true); include ($sidebar); ?&gt;  </p>
<p>where the sidebar should be.</p>
<p>Any thoughts????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jennifer</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-8172</link>
		<dc:creator>Jennifer</dc:creator>
		<pubDate>Thu, 28 Jan 2010 12:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-8172</guid>
		<description>brilliant!  exactly what i was looking for.  and so simple!  why didn&#039;t i think of that? :)  thanks...</description>
		<content:encoded><![CDATA[<p>brilliant!  exactly what i was looking for.  and so simple!  why didn&#8217;t i think of that? <img src='http://www.wpbeginner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Editorial Staff</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-7740</link>
		<dc:creator>Editorial Staff</dc:creator>
		<pubDate>Fri, 22 Jan 2010 14:53:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-7740</guid>
		<description>Just tried it on our test blog, and it is working.</description>
		<content:encoded><![CDATA[<p>Just tried it on our test blog, and it is working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Olivia</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-7614</link>
		<dc:creator>Olivia</dc:creator>
		<pubDate>Tue, 19 Jan 2010 16:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-7614</guid>
		<description>Hey there, thank you for the advice! This is just the sort of solution I am looking for. 

Unfortunately I followed the instructions and it appears that the custom field is being ignored and the default sidebar is being displayed. My custom sidebar works when it&#039;s hard coded into the Page.php file, but since I want custom sidebars for more than one Page, I&#039;d really like to work this solution to my advantage. 

I&#039;m running Wordpress 9.2, thanks for any help you can offer me.</description>
		<content:encoded><![CDATA[<p>Hey there, thank you for the advice! This is just the sort of solution I am looking for. </p>
<p>Unfortunately I followed the instructions and it appears that the custom field is being ignored and the default sidebar is being displayed. My custom sidebar works when it&#8217;s hard coded into the Page.php file, but since I want custom sidebars for more than one Page, I&#8217;d really like to work this solution to my advantage. </p>
<p>I&#8217;m running Wordpress 9.2, thanks for any help you can offer me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-7613</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 19 Jan 2010 16:24:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-7613</guid>
		<description>Dear WPB,

I followed your instructions (page, single, even index .php) pages to no avail - I called my file &quot;ailments.php&quot; just ... because - perhaps my naming protocal is incorrect?

Perhaps I am have misunderstood: this is exactly what I inserted:


ID, &quot;sidebar&quot;, true);
get_sidebar($sidebar);
?&gt;

Do I need to specify variants somewhere in the code you supplied and if so, where.

I am brand-new to WP...

Many Thanks,
Alexandra Hattingh</description>
		<content:encoded><![CDATA[<p>Dear WPB,</p>
<p>I followed your instructions (page, single, even index .php) pages to no avail &#8211; I called my file &#8220;ailments.php&#8221; just &#8230; because &#8211; perhaps my naming protocal is incorrect?</p>
<p>Perhaps I am have misunderstood: this is exactly what I inserted:</p>
<p>ID, &#8220;sidebar&#8221;, true);<br />
get_sidebar($sidebar);<br />
?&gt;</p>
<p>Do I need to specify variants somewhere in the code you supplied and if so, where.</p>
<p>I am brand-new to WP&#8230;</p>
<p>Many Thanks,<br />
Alexandra Hattingh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam H</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-7284</link>
		<dc:creator>Sam H</dc:creator>
		<pubDate>Sat, 09 Jan 2010 22:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-7284</guid>
		<description>for what it&#039;s worth, on wpmu 2.8.6 the code that works is the one mentioned in the article, rather than this comment :)</description>
		<content:encoded><![CDATA[<p>for what it&#8217;s worth, on wpmu 2.8.6 the code that works is the one mentioned in the article, rather than this comment <img src='http://www.wpbeginner.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Editorial Staff</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-4225</link>
		<dc:creator>Editorial Staff</dc:creator>
		<pubDate>Thu, 29 Oct 2009 15:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-4225</guid>
		<description>In your single.php or page.php</description>
		<content:encoded><![CDATA[<p>In your single.php or page.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john wood</title>
		<link>http://www.wpbeginner.com/wp-themes/display-different-sidebar-for-each-post-and-page-for-wordpress/comment-page-1/#comment-4181</link>
		<dc:creator>john wood</dc:creator>
		<pubDate>Thu, 29 Oct 2009 05:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.wpbeginner.com/?p=906#comment-4181</guid>
		<description>were did u put that code?</description>
		<content:encoded><![CDATA[<p>were did u put that code?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
