<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WpFunc &#187; Google adsense</title>
	<atom:link href="http://www.wpfunc.com/tag/google-adsense/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpfunc.com</link>
	<description>Awesome, Quick, Simple WordPress Functions!</description>
	<lastBuildDate>Fri, 09 Jul 2010 09:05:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Show your ads on only old posts!</title>
		<link>http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html</link>
		<comments>http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html#comments</comments>
		<pubDate>Wed, 09 Dec 2009 12:24:25 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[15 days old]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[Google adsense]]></category>
		<category><![CDATA[old posts]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=315</guid>
		<description><![CDATA[We use Google Adsense or any other ad servers for make money :) You can use this ads on your old posts. I don&#8217;t know any pluginfor that function but we can make a function for use ads&#8230; Let&#8217;s begin&#8230;
Here is the code;
To use this code open your functions.php and paste this code into end [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/show-word-counts-on-your-posts.html' rel='bookmark' title='Permanent Link: Show word counts on your posts!'>Show word counts on your posts!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/disable-comments-on-30-day-older-posts.html' rel='bookmark' title='Permanent Link: Disable Comments on 30-day older posts'>Disable Comments on 30-day older posts</a></li>
<li><a href='http://www.wpfunc.com/general/related-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Related Posts, Without any Plugin!'>Related Posts, Without any Plugin!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">We use Google Adsense or any other ad servers for make money :) You can use this ads on your old posts. I don&#8217;t know any pluginfor that function but we can make a function for use ads&#8230; Let&#8217;s begin&#8230;<span id="more-315"></span></p>
<h3 style="text-align: justify;">Here is the code;</h3>
<p style="text-align: justify;">To use this code open your <strong><span style="color: #ff0000;">functions.php</span></strong> and paste this code into end of file.</p>
<pre class="brush: php;">function is_old_post($post_id=null){
   $days = 15;
   global $wp_query;
   if(is_single() || is_page()) {
      if(!$post_id) {
         $post_id = $wp_query-&gt;post-&gt;ID;
      }
      $current_date = time();
      $offset = $days *60*60*24;
      $post_id = get_post($post_id);
      $post_date = mysql2date('U',$post_id-&gt;post_date);
      $cunning_math = $post_date + $offset;
      $test = $current_date - $cunning_math;
      if($test &gt; 0){
         $return = true;
      }else{
         $return = false;
      }
   }else{
      $return = false;
   }
   return $return;
}
</pre>
<p>After that use this code for show your ads&#8230;</p>
<pre class="brush: php;">&lt;?php if(is_old_post()){ ?&gt;
INSERT AD CODE HERE
&lt;?php } ?&gt;
</pre>
<p>This function show ads on your <strong>15 days old</strong> posts. To change this simply change <em><strong>$days </strong></em>value</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%21&amp;notes=We%20use%20Google%20Adsense%20or%20any%20other%20ad%20servers%20for%20make%20money%20%3A%29%20You%20can%20use%20this%20ads%20on%20your%20old%20posts.%20I%20don%27t%20know%20any%20pluginfor%20that%20function%20but%20we%20can%20make%20a%20function%20for%20use%20ads...%20Let%27s%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0ATo%20use%20this%20code%20open%20your'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%21&amp;bodytext=We%20use%20Google%20Adsense%20or%20any%20other%20ad%20servers%20for%20make%20money%20%3A%29%20You%20can%20use%20this%20ads%20on%20your%20old%20posts.%20I%20don%27t%20know%20any%20pluginfor%20that%20function%20but%20we%20can%20make%20a%20function%20for%20use%20ads...%20Let%27s%20begin...%0D%0A%0D%0AHere%20is%20the%20code%3B%0D%0ATo%20use%20this%20code%20open%20your'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;t=Show%20your%20ads%20on%20only%20old%20posts%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Show%20your%20ads%20on%20only%20old%20posts%21&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;title=Show%20your%20ads%20on%20only%20old%20posts%21'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fshow-your-ads-on-only-old-posts.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/show-word-counts-on-your-posts.html' rel='bookmark' title='Permanent Link: Show word counts on your posts!'>Show word counts on your posts!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/disable-comments-on-30-day-older-posts.html' rel='bookmark' title='Permanent Link: Disable Comments on 30-day older posts'>Disable Comments on 30-day older posts</a></li>
<li><a href='http://www.wpfunc.com/general/related-posts-without-any-plugin.html' rel='bookmark' title='Permanent Link: Related Posts, Without any Plugin!'>Related Posts, Without any Plugin!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/show-your-ads-on-only-old-posts.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Do you want to add your ads to your Blog Feed?</title>
		<link>http://www.wpfunc.com/wordpress/do-you-want-to-add-your-ads-to-your-blog-feed.html</link>
		<comments>http://www.wpfunc.com/wordpress/do-you-want-to-add-your-ads-to-your-blog-feed.html#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:30:36 +0000</pubDate>
		<dc:creator>KaiseRCrazY</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[feedburner]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Google adsense]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[site]]></category>

		<guid isPermaLink="false">http://www.wpfunc.com/?p=93</guid>
		<description><![CDATA[Some of my friends are use feedburner with adsense. That&#8217;s good but i think feedburner&#8217;s policity is not good. If you think like me you can add your google ads to your blog feed. It&#8217;s simply and more useful than feedburner. When someone subscribe your feed he/she can click your ads from any RSS reader. [...]<hr /><div style="text-align:center;">
<a href="http://aweber.com/?339698" title="Email Marketing">
<img src="http://www.aweber.com/banners/email_marketing/468x60_an.gif" alt="Email Marketing $19/Month!" style="border:none;" /></a>
</div><hr />


Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/delay-your-feed-updates.html' rel='bookmark' title='Permanent Link: Delay your feed updates'>Delay your feed updates</a></li>
<li><a href='http://www.wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html' rel='bookmark' title='Permanent Link: Make Your RSS Feed Link Auto Discoverable!'>Make Your RSS Feed Link Auto Discoverable!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/fetch-and-display-rss-feeds.html' rel='bookmark' title='Permanent Link: Fetch and display RSS feeds'>Fetch and display RSS feeds</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Some of my friends are use feedburner with adsense. That&#8217;s good but i think feedburner&#8217;s policity is not good. If you think like me you can add your google ads to your blog feed. It&#8217;s simply and more useful than feedburner. When someone subscribe your feed he/she can click your ads from any RSS reader. Lets begin&#8230;<span id="more-93"></span></p>
<p style="text-align: justify;">We make changes on your <strong><em><span style="color: #ff0000;"><span style="color: #008000;">themes</span> functions.php</span></em></strong>. If your theme <strong><span style="color: #008000;">have no </span></strong>functions.php simply create one and paste this code in your file ;</p>
<h3>Here is the Code;</h3>
<pre class="brush: plain;">&lt;?php
 function insertAds($content) {
 $content = $content.'&lt;hr /&gt;&lt;a href=&quot;http://www.wpfunc.com&quot;&gt;Hola, Awesome, Quick, Simple WordPress Functions&lt;/a&gt;&lt;hr /&gt;';
 return $content;
 }
 add_filter('the_excerpt_rss', 'insertAds');
 add_filter('the_content_rss', 'insertAds');
?&gt;</pre>
<p style="text-align: justify;">If you change <strong><em>$conten</em><em>t</em></strong> area (between <strong>&lt;hr/&gt;</strong> and <strong>&lt;hr/&gt;</strong>) you can change it with your google adsense code.</p>
<p style="text-align: justify;">That&#8217;s All! Have a nice day!</p>
<a rel='nofollow' target='_blank'  href='http://delicious.com/post?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html&amp;title=Do%20you%20want%20to%20add%20your%20ads%20to%20your%20Blog%20Feed%3F&amp;notes=Some%20of%20my%20friends%20are%20use%20feedburner%20with%20adsense.%20That%27s%20good%20but%20i%20think%20feedburner%27s%20policity%20is%20not%20good.%20If%20you%20think%20like%20me%20you%20can%20add%20your%20google%20ads%20to%20your%20blog%20feed.%20It%27s%20simply%20and%20more%20useful%20than%20feedburner.%20When%20someone%20subscribe%20you'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/delicious.png' class='sociable-img sociable-hovers ' title='del.icio.us' alt='del.icio.us' /></a><a rel='nofollow' target='_blank'  href='http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html&amp;title=Do%20you%20want%20to%20add%20your%20ads%20to%20your%20Blog%20Feed%3F&amp;bodytext=Some%20of%20my%20friends%20are%20use%20feedburner%20with%20adsense.%20That%27s%20good%20but%20i%20think%20feedburner%27s%20policity%20is%20not%20good.%20If%20you%20think%20like%20me%20you%20can%20add%20your%20google%20ads%20to%20your%20blog%20feed.%20It%27s%20simply%20and%20more%20useful%20than%20feedburner.%20When%20someone%20subscribe%20you'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/digg.png' class='sociable-img sociable-hovers ' title='Digg' alt='Digg' /></a><a rel='nofollow' target='_blank'  href='http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html&amp;t=Do%20you%20want%20to%20add%20your%20ads%20to%20your%20Blog%20Feed%3F'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/facebook.png' class='sociable-img sociable-hovers ' title='Facebook' alt='Facebook' /></a><a rel='nofollow' target='_blank'  href='http://www.friendfeed.com/share?title=Do%20you%20want%20to%20add%20your%20ads%20to%20your%20Blog%20Feed%3F&amp;link=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/friendfeed.png' class='sociable-img sociable-hovers ' title='FriendFeed' alt='FriendFeed' /></a><a rel='nofollow' target='_blank'  href='http://reddit.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html&amp;title=Do%20you%20want%20to%20add%20your%20ads%20to%20your%20Blog%20Feed%3F'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/reddit.png' class='sociable-img sociable-hovers ' title='Reddit' alt='Reddit' /></a><a rel='nofollow' target='_blank'  href='http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html&amp;title=Do%20you%20want%20to%20add%20your%20ads%20to%20your%20Blog%20Feed%3F'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/stumbleupon.png' class='sociable-img sociable-hovers ' title='StumbleUpon' alt='StumbleUpon' /></a><a rel='nofollow' target='_blank'  href='http://technorati.com/faves?add=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/technorati.png' class='sociable-img sociable-hovers ' title='Technorati' alt='Technorati' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/pdf.png' class='sociable-img sociable-hovers ' title='PDF' alt='PDF' /></a><a rel='nofollow' target='_blank'  href='http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.wpfunc.com%2Fwordpress%2Fdo-you-want-to-add-your-ads-to-your-blog-feed.html&amp;partner=sociable'><img src='http://www.wpfunc.com/wp-content/plugins/sociable-30/images/default/16/printfriendly.png' class='sociable-img sociable-hovers ' title='Print' alt='Print' /></a><br/><br/>

<p>Related posts:<ol><li><a href='http://www.wpfunc.com/wordpress/delay-your-feed-updates.html' rel='bookmark' title='Permanent Link: Delay your feed updates'>Delay your feed updates</a></li>
<li><a href='http://www.wpfunc.com/wordpress/make-your-rss-feed-link-auto-discoverable.html' rel='bookmark' title='Permanent Link: Make Your RSS Feed Link Auto Discoverable!'>Make Your RSS Feed Link Auto Discoverable!</a></li>
<li><a href='http://www.wpfunc.com/wordpress/fetch-and-display-rss-feeds.html' rel='bookmark' title='Permanent Link: Fetch and display RSS feeds'>Fetch and display RSS feeds</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wpfunc.com/wordpress/do-you-want-to-add-your-ads-to-your-blog-feed.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
