-->

WP Stats Quick Fix

The WP Stats plugin on my blog has not been working for some time, so I have relied on StatPress for my site visit statistics. I really like StatPress, but today it started bugging me that WP Stats was not recording any visits whatsoever. I know that my API key is correct, as it works just fine for Askimet, so I figured something else was wrong.

After minimal digging in the WordPress forums, I found that there was an essential component missing from my theme’s footer.php file. Right before the ending </body> tag in your footer.php file, you will need to enter the following:

<?php wp_footer(); ?>

This triggers WP Stats to pick up the visits and record them properly.

That’s all there is to it. A very quick fix for quite an annoying problem!

For those who are curious, the theme is Black n White, which can be found over at ZackLive.  I dug around for quite some time and found this to be the absolute best dark theme around.

 
This entry was written by DrNathan , posted on Tuesday March 17 2009at 09:03 am , filed under Quick Fix, Technology, Tips and tagged , , , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>