<?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>SofaRider &#187; total number</title>
	<atom:link href="http://rider.sofarider.com/tag/total-number/feed/" rel="self" type="application/rss+xml" />
	<link>http://rider.sofarider.com</link>
	<description>WordPress Themes, Widgets, Development &#124; WEB &#38; Graphic Design</description>
	<lastBuildDate>Wed, 14 Oct 2009 08:40:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to display total number of posts</title>
		<link>http://rider.sofarider.com/blog/wordpress-tips/how-to-display-total-number-of-posts/</link>
		<comments>http://rider.sofarider.com/blog/wordpress-tips/how-to-display-total-number-of-posts/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 15:06:53 +0000</pubDate>
		<dc:creator>Feeleep</dc:creator>
				<category><![CDATA[Wordpress Tips]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[post]]></category>
		<category><![CDATA[total number]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://rider.sofarider.com/?p=178</guid>
		<description><![CDATA[For a case you want to display total number of posts ever published on your blog, here is an easy way to do it. I guess there&#8217;s another method but this one works fine for me just fine. You can say &#8216;Why the hell one would need something like that?&#8217; but just try to Google [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://rider.sofarider.com/wp-content/uploads/2009/06/numbers-200x200.jpg" alt="numbers" title="numbers" width="200" height="200" class="alignnone size-thumbnail wp-image-179" />For a case you want to display total number of posts ever published on your blog, here is an easy way to do it. I guess there&#8217;s another method but this one works fine for me just fine. You can say &#8216;Why the hell one would need something like that?&#8217; but just try to Google for the subject of this post and you&#8217;ll see it doesn&#8217;t seem to be so useless. Here it is:</p>
<pre>
<code>
&lt;?php
	$numposts = $wpdb-&gt;get_var( &quot;SELECT COUNT(*) FROM $wpdb-&gt;posts WHERE post_status = 'publish'&quot; );
	echo $numposts;
?&gt;
</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://rider.sofarider.com/blog/wordpress-tips/how-to-display-total-number-of-posts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
