<?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: Displaying the Number of Visits in a WordPress Blog Post</title>
	<atom:link href="http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/feed/" rel="self" type="application/rss+xml" />
	<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/</link>
	<description>Resources for Webmasters and Developers</description>
	<lastBuildDate>Sun, 05 Feb 2012 01:08:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: EO</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-212576</link>
		<dc:creator>EO</dc:creator>
		<pubDate>Tue, 16 Aug 2011 01:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-212576</guid>
		<description>YES! got it working - to display all blog visits outside of the wordpress loop, simply omit the &quot;get_the_ID(),&quot; entirely from the code, for example:



thanks for pointing me in the right direction!</description>
		<content:encoded><![CDATA[<p>YES! got it working &#8211; to display all blog visits outside of the wordpress loop, simply omit the &#8220;get_the_ID(),&#8221; entirely from the code, for example:</p>
<p>thanks for pointing me in the right direction!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amgad</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-212532</link>
		<dc:creator>Amgad</dc:creator>
		<pubDate>Mon, 15 Aug 2011 21:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-212532</guid>
		<description>@EO you can use the get_the_ID() wordpress function to get the current page/post ID. But it must be called within the wordpress Loop (http://codex.wordpress.org/Function_Reference/get_the_ID for more info). If you want to call it outside the loop you&#039;ll have to assign get_the_ID()&#039;s returned value to a variable and use it later.</description>
		<content:encoded><![CDATA[<p>@EO you can use the get_the_ID() wordpress function to get the current page/post ID. But it must be called within the wordpress Loop (<a href="http://codex.wordpress.org/Function_Reference/get_the_ID" rel="nofollow">http://codex.wordpress.org/Function_Reference/get_the_ID</a> for more info). If you want to call it outside the loop you&#8217;ll have to assign get_the_ID()&#8217;s returned value to a variable and use it later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EO</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-212529</link>
		<dc:creator>EO</dc:creator>
		<pubDate>Mon, 15 Aug 2011 21:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-212529</guid>
		<description>ah yes, this is where the problem is -

If I wanted to show only the total views of my entire site, the plugin-page says to specify &quot;null&quot; to display the count for all posts/pages... what then, is the correct syntax for the page ID?

thank you once again! :)</description>
		<content:encoded><![CDATA[<p>ah yes, this is where the problem is -</p>
<p>If I wanted to show only the total views of my entire site, the plugin-page says to specify &#8220;null&#8221; to display the count for all posts/pages&#8230; what then, is the correct syntax for the page ID?</p>
<p>thank you once again! <img src='http://codehill.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amgad</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-212525</link>
		<dc:creator>Amgad</dc:creator>
		<pubDate>Mon, 15 Aug 2011 21:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-212525</guid>
		<description>@EO you&#039;re welcome. I tried the code now for a few minutes and it worked. Did you make sure the 3rd argument (the page ID) has the correct value?</description>
		<content:encoded><![CDATA[<p>@EO you&#8217;re welcome. I tried the code now for a few minutes and it worked. Did you make sure the 3rd argument (the page ID) has the correct value?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EO</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-212508</link>
		<dc:creator>EO</dc:creator>
		<pubDate>Mon, 15 Aug 2011 18:26:37 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-212508</guid>
		<description>this was hugely helpful!  thank you for posting...

I also have a question - it seems that the visit count has been stuck on a particular value for hours after I initially added the php code in my theme&#039;s footer, despite many more visits to the site.  I&#039;m running WP 3.2.1, might there a compatibility issue or maybe something in need of modification in the code?

thanks for your help!

EO</description>
		<content:encoded><![CDATA[<p>this was hugely helpful!  thank you for posting&#8230;</p>
<p>I also have a question &#8211; it seems that the visit count has been stuck on a particular value for hours after I initially added the php code in my theme&#8217;s footer, despite many more visits to the site.  I&#8217;m running WP 3.2.1, might there a compatibility issue or maybe something in need of modification in the code?</p>
<p>thanks for your help!</p>
<p>EO</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alvin Nyau</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-106261</link>
		<dc:creator>Alvin Nyau</dc:creator>
		<pubDate>Sat, 22 Jan 2011 18:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-106261</guid>
		<description>This method works like a charm! Truly appreciate it! =)</description>
		<content:encoded><![CDATA[<p>This method works like a charm! Truly appreciate it! =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-60033</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 08 Nov 2010 20:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-60033</guid>
		<description>Yeah had a little play last night and couldn&#039;t hack it to do what I wanted. 

Thanks.</description>
		<content:encoded><![CDATA[<p>Yeah had a little play last night and couldn&#8217;t hack it to do what I wanted. </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amgad</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-59653</link>
		<dc:creator>Amgad</dc:creator>
		<pubDate>Mon, 08 Nov 2010 05:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-59653</guid>
		<description>@Dave, the WordPress.com Stats Helper plugin is limited to returning the number of visit to date. So setting the last argument to 0, 1, 7 or 30 will return all, today&#039;s, last 7 days or 30 days respectively. And these are the only valid values.</description>
		<content:encoded><![CDATA[<p>@Dave, the WordPress.com Stats Helper plugin is limited to returning the number of visit to date. So setting the last argument to 0, 1, 7 or 30 will return all, today&#8217;s, last 7 days or 30 days respectively. And these are the only valid values.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://codehill.com/2010/04/displaying-the-number-of-visits-in-a-wordpress-blog-post/comment-page-1/#comment-59430</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 07 Nov 2010 14:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://codehill.com/?p=2295#comment-59430</guid>
		<description>Hey, 

Wondering if you can use this to call out visits on a particular day? Eg, post visits today, and for the last 7 days so it would return something like &quot;7,8,7,8,9,4,3&quot;  &lt;&lt; those are visits per day for 7 days

Cheers,
Dave</description>
		<content:encoded><![CDATA[<p>Hey, </p>
<p>Wondering if you can use this to call out visits on a particular day? Eg, post visits today, and for the last 7 days so it would return something like &#8220;7,8,7,8,9,4,3&#8243;  &lt;&lt; those are visits per day for 7 days</p>
<p>Cheers,<br />
Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>

