<?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: WordPress: Homepage Ads ONLY After The First Article</title>
	<atom:link href="http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/feed/" rel="self" type="application/rss+xml" />
	<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/</link>
	<description>Specialization is for Insects.</description>
	<lastBuildDate>Fri, 25 May 2012 16:19:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Mihir Naik</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-3/#comment-97963</link>
		<dc:creator>Mihir Naik</dc:creator>
		<pubDate>Sat, 05 Nov 2011 03:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-97963</guid>
		<description>Hey The problem is, I am seeing same ads on individual post also. What to do?</description>
		<content:encoded><![CDATA[<p>Hey The problem is, I am seeing same ads on individual post also. What to do?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ali Hussain</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-3/#comment-51823</link>
		<dc:creator>Ali Hussain</dc:creator>
		<pubDate>Wed, 23 Sep 2009 08:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-51823</guid>
		<description>Thankyou but you can use other ways too.
See here. 
http://www.bitrepository.com/insert-google-adsense-ads-between-your-wordpress-blog-posts.html</description>
		<content:encoded><![CDATA[<p>Thankyou but you can use other ways too.<br />
See here.<br />
<a href="http://www.bitrepository.com/insert-google-adsense-ads-between-your-wordpress-blog-posts.html" rel="nofollow">http://www.bitrepository.com/insert-google-adsense-ads-between-your-wordpress-blog-posts.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Durkin - Go Holga</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-3/#comment-43658</link>
		<dc:creator>Durkin - Go Holga</dc:creator>
		<pubDate>Thu, 23 Oct 2008 18:29:46 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-43658</guid>
		<description>worked great, thanks!</description>
		<content:encoded><![CDATA[<p>worked great, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Todor Christov</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-3/#comment-42257</link>
		<dc:creator>Todor Christov</dc:creator>
		<pubDate>Sat, 13 Sep 2008 13:15:38 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-42257</guid>
		<description>Great advce - I tried it - works perfect! Thank you!!

I have exactly the same question like Shawn. I tried to copy the same code after the first one and only replaced the count number (from 0 to 2), but in that case no ads appear on the screen at all.

What could be the correct code in that case?</description>
		<content:encoded><![CDATA[<p>Great advce &#8211; I tried it &#8211; works perfect! Thank you!!</p>
<p>I have exactly the same question like Shawn. I tried to copy the same code after the first one and only replaced the count number (from 0 to 2), but in that case no ads appear on the screen at all.</p>
<p>What could be the correct code in that case?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-3/#comment-41202</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Thu, 31 Jul 2008 19:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-41202</guid>
		<description>That&#039;s what I figured but I tried that and it broke the page.</description>
		<content:encoded><![CDATA[<p>That&#8217;s what I figured but I tried that and it broke the page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John P.</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-3/#comment-41198</link>
		<dc:creator>John P.</dc:creator>
		<pubDate>Wed, 30 Jul 2008 23:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-41198</guid>
		<description>Shawn,

I&#039;ve not tested this, but I think I would just add a second copy with the other ad in it but change the PHP count to be 1 or 2 or whatever.

So, add another one that starts with:
&lt;code&gt;&lt;?php if ($count == 2) : ?&gt;&lt;/code&gt;

John</description>
		<content:encoded><![CDATA[<p>Shawn,</p>
<p>I&#8217;ve not tested this, but I think I would just add a second copy with the other ad in it but change the PHP count to be 1 or 2 or whatever.</p>
<p>So, add another one that starts with:<br />
<code>&lt;?php if ($count == 2) : ?></code></p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-41194</link>
		<dc:creator>Shawn</dc:creator>
		<pubDate>Wed, 30 Jul 2008 17:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-41194</guid>
		<description>What would the code look like if we wanted an ad after the first *and* second posts?</description>
		<content:encoded><![CDATA[<p>What would the code look like if we wanted an ad after the first *and* second posts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WordPress: Homepage Ads ONLY After The First Article &#124; White Sands Digital</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-37639</link>
		<dc:creator>WordPress: Homepage Ads ONLY After The First Article &#124; White Sands Digital</dc:creator>
		<pubDate>Fri, 11 Apr 2008 01:13:23 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-37639</guid>
		<description>[...] read more &#124; digg story [...]</description>
		<content:encoded><![CDATA[<p>[...] read more | digg story [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduardo Maio</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-35912</link>
		<dc:creator>Eduardo Maio</dc:creator>
		<pubDate>Tue, 26 Feb 2008 00:44:35 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-35912</guid>
		<description>Such a small piece of code for a nice big result! Thank you!</description>
		<content:encoded><![CDATA[<p>Such a small piece of code for a nice big result! Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anak Medan</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-34832</link>
		<dc:creator>Anak Medan</dc:creator>
		<pubDate>Thu, 24 Jan 2008 11:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-34832</guid>
		<description>I have try your code and its worked !
thanx for nice post Dear :)</description>
		<content:encoded><![CDATA[<p>I have try your code and its worked !<br />
thanx for nice post Dear :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress&#8217;te Ã„Â°lk Konudan Sonra Reklam : Rebelboy.net</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-27996</link>
		<dc:creator>Wordpress&#8217;te Ã„Â°lk Konudan Sonra Reklam : Rebelboy.net</dc:creator>
		<pubDate>Mon, 08 Oct 2007 22:52:08 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27996</guid>
		<description>[...] Eper sorun yaÃ…Å¸adÃ„Â±ysanÃ„Â±z John&#8217;un yazÃ„Â±sÃ„Â±na bakabilirsiniz. [...]</description>
		<content:encoded><![CDATA[<p>[...] Eper sorun yaÃ…Å¸adÃ„Â±ysanÃ„Â±z John&#8217;un yazÃ„Â±sÃ„Â±na bakabilirsiniz. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: melayu</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-27524</link>
		<dc:creator>melayu</dc:creator>
		<pubDate>Sat, 06 Oct 2007 04:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27524</guid>
		<description>ahh ok, thanks john

i usually have adsense ad on my content area, and if i have about 10 post on main page, with 3 max adsense banner, there will be a blank gap on 4th posting ... so that&#039;s why i asked

i use adsense deluxe plugin myself but it does not have option to limit how many banners should appear on front page and such

still a good tip</description>
		<content:encoded><![CDATA[<p>ahh ok, thanks john</p>
<p>i usually have adsense ad on my content area, and if i have about 10 post on main page, with 3 max adsense banner, there will be a blank gap on 4th posting &#8230; so that&#8217;s why i asked</p>
<p>i use adsense deluxe plugin myself but it does not have option to limit how many banners should appear on front page and such</p>
<p>still a good tip</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John P.</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-27504</link>
		<dc:creator>John P.</dc:creator>
		<pubDate>Sat, 06 Oct 2007 03:32:15 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27504</guid>
		<description>Well, actually, the count ==0 just basically tells the system to place the ad after the first post on the homepage, and before the second one (that is, before the count increments to #1).  If you change it to 2, it will put it before the third one, but there will still be only one ad on the page.

So, basically you just need to put the ad code into your theme manually in two other places.  If you can hold off on doing it for just a short while, I&#039;m going to work with Donncha to author a comprehensive post regarding who, how, what, when, and why to monetize your blog.  I&#039;d guess it will be 1 to 2 weeks max and we&#039;ll tell you what plugins to use, where to put the code, etc.

John</description>
		<content:encoded><![CDATA[<p>Well, actually, the count ==0 just basically tells the system to place the ad after the first post on the homepage, and before the second one (that is, before the count increments to #1).  If you change it to 2, it will put it before the third one, but there will still be only one ad on the page.</p>
<p>So, basically you just need to put the ad code into your theme manually in two other places.  If you can hold off on doing it for just a short while, I&#8217;m going to work with Donncha to author a comprehensive post regarding who, how, what, when, and why to monetize your blog.  I&#8217;d guess it will be 1 to 2 weeks max and we&#8217;ll tell you what plugins to use, where to put the code, etc.</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: melayu</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-27495</link>
		<dc:creator>melayu</dc:creator>
		<pubDate>Sat, 06 Oct 2007 03:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27495</guid>
		<description>&lt;strong&gt;questions&lt;/strong&gt;: adsense only allow 3 banners, so what if i want to have 3 adsense ads instead of one john?

i increase the &quot;$count == 2&quot;</description>
		<content:encoded><![CDATA[<p><strong>questions</strong>: adsense only allow 3 banners, so what if i want to have 3 adsense ads instead of one john?</p>
<p>i increase the &#8220;$count == 2&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheDane</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-27333</link>
		<dc:creator>TheDane</dc:creator>
		<pubDate>Fri, 05 Oct 2007 11:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27333</guid>
		<description>I just rewrote some of the code in the Adsense Injection plugin... I like that plugin a lot, makes my life easier...

Kim:)</description>
		<content:encoded><![CDATA[<p>I just rewrote some of the code in the Adsense Injection plugin&#8230; I like that plugin a lot, makes my life easier&#8230;</p>
<p>Kim:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donncha O Caoimh</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-2/#comment-27299</link>
		<dc:creator>Donncha O Caoimh</dc:creator>
		<pubDate>Fri, 05 Oct 2007 08:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27299</guid>
		<description>Here you go, this should work:

if ($count == 0) :
 if( is_searchengine_user() ) {
// big nasty advert
} elseif( is_regular_user() == false ) {
// smaller less nasty advert
}
endif; $count++;</description>
		<content:encoded><![CDATA[<p>Here you go, this should work:</p>
<p>if ($count == 0) :<br />
 if( is_searchengine_user() ) {<br />
// big nasty advert<br />
} elseif( is_regular_user() == false ) {<br />
// smaller less nasty advert<br />
}<br />
endif; $count++;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John P.</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-1/#comment-27298</link>
		<dc:creator>John P.</dc:creator>
		<pubDate>Fri, 05 Oct 2007 08:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27298</guid>
		<description>Ok.  So I was going to add the code to my example from this post, but I just realized that I don&#039;t know how!

I don&#039;t think it&#039;s actually possible to nest PHP commands, so could you give me an example of how to add your suggested code here to my code above in the post?

Thanks once again!

John</description>
		<content:encoded><![CDATA[<p>Ok.  So I was going to add the code to my example from this post, but I just realized that I don&#8217;t know how!</p>
<p>I don&#8217;t think it&#8217;s actually possible to nest PHP commands, so could you give me an example of how to add your suggested code here to my code above in the post?</p>
<p>Thanks once again!</p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urbanist</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-1/#comment-27003</link>
		<dc:creator>Urbanist</dc:creator>
		<pubDate>Wed, 03 Oct 2007 23:37:39 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-27003</guid>
		<description>Adding this plugin is very much on my to-do list. I think it&#039;s critical to &#039;thank&#039; readers by displaying ads very selectively and, if possible, not at all to loyal readers.</description>
		<content:encoded><![CDATA[<p>Adding this plugin is very much on my to-do list. I think it&#8217;s critical to &#8216;thank&#8217; readers by displaying ads very selectively and, if possible, not at all to loyal readers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dax</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-1/#comment-26979</link>
		<dc:creator>Dax</dc:creator>
		<pubDate>Wed, 03 Oct 2007 20:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-26979</guid>
		<description>That is pretty straight forward.  I thought there was much more code required to achieve this.</description>
		<content:encoded><![CDATA[<p>That is pretty straight forward.  I thought there was much more code required to achieve this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donncha O Caoimh</title>
		<link>http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/comment-page-1/#comment-26958</link>
		<dc:creator>Donncha O Caoimh</dc:creator>
		<pubDate>Wed, 03 Oct 2007 18:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://onemansblog.com/2007/10/03/wordpress-homepage-ads-only-after-the-first-article/#comment-26958</guid>
		<description>What I usually do is something like
1. Check if the user came from a search engine
2. If not, then check if they&#039;re not a regular user
3. err, no number 3.

So:
if( is_searchengine_user() ) {
// big nasty advert
} elseif( is_regular_user() == false ) {
// smaller less nasty advert
}

If you do the search engine check you don&#039;t  need to check for the age of the post. That&#039;s included in the first check :)</description>
		<content:encoded><![CDATA[<p>What I usually do is something like<br />
1. Check if the user came from a search engine<br />
2. If not, then check if they&#8217;re not a regular user<br />
3. err, no number 3.</p>
<p>So:<br />
if( is_searchengine_user() ) {<br />
// big nasty advert<br />
} elseif( is_regular_user() == false ) {<br />
// smaller less nasty advert<br />
}</p>
<p>If you do the search engine check you don&#8217;t  need to check for the age of the post. That&#8217;s included in the first check :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc
Object Caching 579/584 objects using apc

Served from: onemansblog.com @ 2012-05-25 16:54:06 -->
