<?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>DiscussingHow.com &#187; Making Money</title>
	<atom:link href="http://www.discussinghow.com/en/money/feed" rel="self" type="application/rss+xml" />
	<link>http://www.discussinghow.com</link>
	<description>Quick and Easy Solutions to Everyday Technology!</description>
	<lastBuildDate>Fri, 03 Feb 2012 19:06:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to put Adsense ads block after first paragraph in WordPress Posts</title>
		<link>http://www.discussinghow.com/how-to-put-adsense-ads-block-after-first-paragraph-in-wordpress-posts-58.html</link>
		<comments>http://www.discussinghow.com/how-to-put-adsense-ads-block-after-first-paragraph-in-wordpress-posts-58.html#comments</comments>
		<pubDate>Sun, 19 Jul 2009 09:44:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Blogging Tips]]></category>
		<category><![CDATA[Making Money]]></category>

		<guid isPermaLink="false">http://www.discussinghow.com/?p=58</guid>
		<description><![CDATA[I just wanted to post this quick tips article as I am sure it will be helpful to other webmasters. If you are looking for a way to put adsense ads after the first paragraph of each entry in your &#8230; <a href="http://www.discussinghow.com/how-to-put-adsense-ads-block-after-first-paragraph-in-wordpress-posts-58.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just wanted to post this quick tips article as I am sure it will be helpful to other webmasters. If you are looking for a way to put adsense ads after the first paragraph of each entry in your wordpress blog OR if you want to place an adsense ad block after second or third paragraph of each entry, then here is what you can do.</p>
<p>The following need some simple code editing in wordpress template file (<span style="color: #800000;"><strong>single.php</strong></span>)</p>
<p><strong>1. Find the php file &#8211; single.php in your wordpress blog themes folder.</strong><br />
<strong> 2. search for the code: <code><span style="color: #800000;">&lt;?php the_content(); ?&gt;</span></code></strong><br />
<strong> 3. Replace the above code with the following:</strong><br />
<code><span style="color: #800000;"> &lt;?php<br />
$paragraphAfter= 1; //display after the first paragraph<br />
$content = apply_filters('the_content', get_the_content());<br />
$content = explode("&lt;/p&gt;", $content);<br />
for ($i = 0; $i &lt;count($content); $i++) {<br />
if ($i == $paragraphAfter) { ?&gt;</span><span style="color: #800000;"></span><br />
<span style="color: #800000;">&lt;div&gt;</span></p>
<p><span style="color: #800000;">Your add code here</span></p>
<p><span style="color: #800000;">&lt;/div&gt;</span><br />
<span style="color: #800000;">&lt;?php<br />
}<br />
echo $content[$i] . "&lt;/p&gt;";<br />
} ?&gt;</span></code></p>
<p><strong>You can now place your adsense ad code into the place where it is written &#8220;Your ad code here&#8221;. You can also change the number of paragraph after which you would like your adsense ad to appear. This can be done by replacing the number in the code <code><span style="color: #800000;"><strong>$paragraphAfter= 1 </strong></span></code> with the paragraph number after which you want the ad to be seen. I sure hope this is helpful.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.discussinghow.com/how-to-put-adsense-ads-block-after-first-paragraph-in-wordpress-posts-58.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

