<?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>Wordpress and Webdesign Forum go41 &#187; Topic: Different header and sidebar ads for a single page</title>
		<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page</link>
		<description>How To, tips, php and css code for your WordPress site</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 22:41:58 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://forum.go41.de/rss/topic/different-header-and-sidebar-ads-for-a-single-page" rel="self" type="application/rss+xml" />

		<item>
			<title>mlynn on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-979</link>
			<pubDate>Thu, 30 Jun 2011 21:27:26 +0000</pubDate>
			<dc:creator>mlynn</dc:creator>
			<guid isPermaLink="false">979@http://forum.go41.de/</guid>
			<description><![CDATA[<p>You could also use a plugin like the <a href="http://www.mlynn.org/graceful-sidebar-plugin">Graceful Sidebar Plugin</a>.  This simple plugin enables you to customize your posts or pages with unique sidebar content.</p>
<p>Enjoy!<br />
Mike
</p>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-179</link>
			<pubDate>Mon, 08 Mar 2010 17:38:00 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">179@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Brilliant - thank-you!
</p>]]></description>
					</item>
		<item>
			<title>masteradmin on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-178</link>
			<pubDate>Mon, 08 Mar 2010 16:07:29 +0000</pubDate>
			<dc:creator>masteradmin</dc:creator>
			<guid isPermaLink="false">178@http://forum.go41.de/</guid>
			<description><![CDATA[<p>you got a typing error "elseif &#60;?php if"<br />
this should work:<br />
<pre><code>&#60;?php if ( is_page(&#39;Favourbrook&#39;) ) { ?&#62;
&#60;a href=&#34;http://www.iamstaggered.com&#34; onClick=&#34;javascript: pageTracker._trackPageview(&#39;/outgoing/www.designaventure.co.uk&#39;);&#34;&#62;&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/testadvertsidebar.png&#34; alt=&#34;&#34; width=&#34;300px&#34; height=&#34;250px&#34;  /&#62;&#60;/a&#62;
&#60;?php } elseif ( is_category(&#39;randallmurrow&#39;) ) { ?&#62;
&#60;a href=&#34;http://weddings.randallmurrow.com/&#34;&#62;&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/randallad.jpg&#34; alt=&#34;&#34; width=&#34;300px&#34; height=&#34;250px&#34;  /&#62;&#60;/a&#62;
&#60;?php } elseif ( is_category(&#39;anyothercat&#39;) ) { ?&#62;
anyothercat thing
&#60;?php } elseif ( is_tag(&#39;stag-do&#39;) ) { ?&#62;
thing for tag stag-do
&#60;?php } else { ?&#62;
&#60;a href=&#34;http://www.iamstaggered.com/forum/challenge-staggered/how-does-it-work&#34;&#62;
&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/Ateam11.png&#34; alt=&#34;&#34; width=&#34;300px&#34; height=&#34;250px&#34; /&#62;
&#60;/a&#62;
&#60;?php } ?&#62;</code></pre>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-176</link>
			<pubDate>Mon, 08 Mar 2010 15:32:28 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">176@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Hi Joern, </p>
<p>More on this I'm afraid - I can't quite seem to format the tags for a series of conditional tags. </p>
<p>What I want is different sidebar ads depending on the page (e.g. some will be different ads for blog categories, some for individual pages, etc). </p>
<p>For that reason I think I need to create a set of conditions such as below, but using this gives me a parsing error. Any chance you could give me a pointer?</p>
<p>Thanks again. </p>
<p>Dr_Whom</p>
<pre><code>&#60;div id=&#34;sidebar&#34;&#62;

&#60;div id=&#34;sidebar-ads&#34;&#62;
&#60;?php if ( is_page(&#39;Favourbrook&#39;) ) { ?&#62;
&#60;a href=&#34;http://www.iamstaggered.com&#34;&#62;&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/testadvertsidebar.png&#34; alt=&#34;&#34; width=&#34;300px&#34; height=&#34;250px&#34;  /&#62;&#60;/a&#62;&#60;?php } elseif &#60;?php if ( is_category(&#39;randallmurrow&#39;) ) { ?&#62;
&#60;a href=&#34;http://weddings.randallmurrow.com/&#34;&#62;&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/randallad.jpg&#34; alt=&#34;&#34; width=&#34;300px&#34; height=&#34;250px&#34;  /&#62;&#60;/a&#62;&#60;?php } else { ?&#62;
&#60;a href=&#34;http://www.iamstaggered.com/forum/challenge-staggered/how-does-it-work&#34;&#62;
&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/Ateam11.png&#34; alt=&#34;&#34; width=&#34;300px&#34; height=&#34;250px&#34; /&#62;
&#60;/a&#62;&#60;?php } ?&#62;

&#60;/div&#62;

&#60;div id=&#34;sidebar-top&#34;&#62;
&#60;?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists(&#39;dynamic_sidebar&#39;) &#124;&#124; !dynamic_sidebar(1) ) : ?&#62;

&#60;?php endif; ?&#62;
&#60;/div&#62;

&#60;div id=&#34;sidebar-middle&#34; class=&#34;clearfloat&#34;&#62;
&#60;div id=&#34;sidebar-left&#34;&#62;
&#60;?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists(&#39;dynamic_sidebar&#39;) &#124;&#124; !dynamic_sidebar(2) ) : ?&#62;
&#60;?php endif; ?&#62; 

&#60;ul&#62;&#60;?php wp_list_bookmarks(&#39;categorize=0&#38;category=17&#38;title_li=0&#38;show_images=0&#38;show_description=0&#38;orderby=name&#39;); ?&#62;&#60;/ul&#62;
&#60;/div&#62;  

&#60;div id=&#34;sidebar-right&#34;&#62;
&#60;?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists(&#39;dynamic_sidebar&#39;) &#124;&#124; !dynamic_sidebar(3) ) : ?&#62; 		

&#60;h3&#62;Blogroll&#60;/h3&#62;

&#60;ul&#62;
&#60;li&#62;&#60;a href=&#34;http://colorlabsproject.com&#34;&#62;Colorlabs Project&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;http://michaelhutagalung.com&#34;&#62;Michael Jubel&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;http://www.hannasyalala.com&#34;&#62;Hanna Siahaan&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;http://majarimagazine.com&#34;&#62;Majari Magazine&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;http://bloggerzine.majarikanayakan.com&#34;&#62;The Bloggerzine&#60;/a&#62;&#60;/li&#62;
&#60;li&#62;&#60;a href=&#34;http://www.majarikanayakan.com&#34;&#62;Majari Kanayakan&#60;/a&#62;&#60;/li&#62;
&#60;/ul&#62;
&#60;?php endif; ?&#62;
&#60;/div&#62; 

&#60;/div&#62;

&#60;div id=&#34;sidebar-bottom&#34;&#62;
&#60;?php 	/* Widgetized sidebar, if you have the plugin installed. */ 					if ( !function_exists(&#39;dynamic_sidebar&#39;) &#124;&#124; !dynamic_sidebar(4) ) : ?&#62;
&#60;?php endif; ?&#62; &#60;/div&#62;   

&#60;/div&#62;</code></pre>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-162</link>
			<pubDate>Thu, 18 Feb 2010 15:59:13 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">162@http://forum.go41.de/</guid>
			<description><![CDATA[<p>JOERN/MASTERADMIN I BLOODY LOVE YOU. THAT IS ALL. </p>
<p>Ahem, yes, it was a page, not a single post. Whoops.
</p>]]></description>
					</item>
		<item>
			<title>masteradmin on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-161</link>
			<pubDate>Thu, 18 Feb 2010 15:01:56 +0000</pubDate>
			<dc:creator>masteradmin</dc:creator>
			<guid isPermaLink="false">161@http://forum.go41.de/</guid>
			<description><![CDATA[<p>it seems not to recognize the is_single<br />
you could try with the ID of this post is_single('17') 17 sould be your ID<br />
or with the page slug is_single('favourbrook')</p>
<p>I hope we talk about a single post? that's not a page or category, right?</p>
<p>If it's a page you need:</p>
<p>is_page('favourbrook')
</p>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-160</link>
			<pubDate>Thu, 18 Feb 2010 14:16:28 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">160@http://forum.go41.de/</guid>
			<description><![CDATA[<p>I'll try posting a very small section:</p>
<pre><code>&#60;a href=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/&#34;&#62;&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/logotrial3.jpg&#34; width=&#34;410px&#34; height=&#34;110px&#34; alt=&#34;&#34; /&#62;&#60;/a&#62;
	&#60;div id=&#34;tagline&#34;&#62;&#60;?php bloginfo(&#39;description&#39;); ?&#62;&#60;/div&#62;
	&#60;/div&#62;

	&#60;div class=&#34;right&#34;&#62;
&#60;?php if ( is_single(&#39;Favourbrook&#39;) ) { ?&#62;
&#60;a href=&#34;http://www.iamstaggered.com&#34; onClick=&#34;javascript: pageTracker._trackPageview(&#39;/outgoing/www.designaventure.co.uk&#39;);&#34;&#62;&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/testadvert.png&#34; alt=&#34;&#34; width=&#34;450px&#34; height=&#34;130px&#34;  /&#62;&#60;/a&#62;&#60;?php } else { ?&#62;
&#60;a href=&#34;http://www.designaventure.co.uk&#34; onClick=&#34;javascript: pageTracker._trackPageview(&#39;/outgoing/www.designaventure.co.uk&#39;);&#34;&#62;&#60;img src=&#34;&#60;?php echo get_option(&#39;home&#39;); ?&#62;/wp-content/themes/arthemia/images/banners/Designaventureadjan.jpg&#34; alt=&#34;&#34; width=&#34;450px&#34; height=&#34;136px&#34;  /&#62;&#60;/a&#62;
&#60;?php } ?&#62;
	&#60;/div&#62;</code></pre>
<p>Ok, that seems to do it - this is from header.php but it doesn't amend the Favourbrook page to use the testadvert.png - any ideas where I'm going wrong?
</p>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-156</link>
			<pubDate>Thu, 18 Feb 2010 14:11:51 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">156@http://forum.go41.de/</guid>
			<description><![CDATA[<p>For some reason I don't think the forum likes me posting code...
</p>]]></description>
					</item>
		<item>
			<title>masteradmin on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-153</link>
			<pubDate>Wed, 17 Feb 2010 17:10:26 +0000</pubDate>
			<dc:creator>masteradmin</dc:creator>
			<guid isPermaLink="false">153@http://forum.go41.de/</guid>
			<description><![CDATA[<p>anywhere, in header.php make space under your add, paste the code as is and look if you see the text 'do Favourbrook add here' or 'do any other stuff here' under your head.<br />
If yes it's working and you put your different adds instead of the text.<br />
sidebar.php ditto</p>
<p>while editing header.php you could delete:<br />
<pre><code>&#60;meta name=&#34;generator&#34; content=&#34;WordPress &#60;?php bloginfo(&#39;version&#39;); ?&#62;&#34; /&#62;</code></pre>
<p>as this comes twice in your source code, once generated by wordpress alone
</p>]]></description>
					</item>
		<item>
			<title>masteradmin on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-152</link>
			<pubDate>Wed, 17 Feb 2010 17:06:45 +0000</pubDate>
			<dc:creator>masteradmin</dc:creator>
			<guid isPermaLink="false">152@http://forum.go41.de/</guid>
			<description><![CDATA[<p>I see your reply..<br />
now changed to weird..
</p>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-151</link>
			<pubDate>Wed, 17 Feb 2010 17:05:59 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">151@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Let me try again as it seemed to take that post </p>
<p>- thank-you<br />
- notification is working great<br />
- does the conditional code go in sidebar.php and header.php?
</p>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-150</link>
			<pubDate>Wed, 17 Feb 2010 17:05:13 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">150@http://forum.go41.de/</guid>
			<description><![CDATA[<p>The forum's being weird!
</p>]]></description>
					</item>
		<item>
			<title>Joern on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-141</link>
			<pubDate>Wed, 17 Feb 2010 16:40:57 +0000</pubDate>
			<dc:creator>Joern</dc:creator>
			<guid isPermaLink="false">141@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Put a conditional tag around the different adds, like this:<br />
<pre><code>&#60;?php if ( is_single(&#39;Favourbrook&#39;) ) { ?&#62;
do Favourbrook add here
&#60;?php } else { ?&#62;
do any other stuff here
&#60;?php } ?&#62;</code></pre>
<p>that's just for this single post, more conditional tags see here:</p>
<p><a href="http://codex.wordpress.org/Conditional_Tags" rel="nofollow">http://codex.wordpress.org/Conditional_Tags</a></p>
<p>btw: is my 'Subscribe To Topic via Email' working in this forum?
</p>]]></description>
					</item>
		<item>
			<title>drwhom on "Different header and sidebar ads for a single page"</title>
			<link>http://forum.go41.de/topic/different-header-and-sidebar-ads-for-a-single-page#post-140</link>
			<pubDate>Wed, 17 Feb 2010 15:55:04 +0000</pubDate>
			<dc:creator>drwhom</dc:creator>
			<guid isPermaLink="false">140@http://forum.go41.de/</guid>
			<description><![CDATA[<p>Hi Joern, </p>
<p>I've got a vague feeling that you might have helped me with something similar before but I can't find the answer. </p>
<p>Essentially, all I want to do is change a single page so that it has a different sidebar and header ad. e.g. <a href="http://www.iamstaggered.com/style/favourbrook" rel="nofollow">http://www.iamstaggered.com/style/favourbrook</a> would have a Favourbrook ad at sidebar and header. </p>
<p>Please help me Joern, you're my only hope!
</p>]]></description>
					</item>

	</channel>
</rss>

