Written April 11, 2008 in howto, reviews, webdev, wordpress

Man, and I thought my Wordpress upgrade struggles were over.

So, you upgraded to 2.5 a few days ago, and you’re using the Default theme until you have time to customize another one. And you got rid of the old Statspress plugin because after you started getting over 10,000 pageviews a month, your database got kinda full and rather slow. So for stats, you try the Wordpress.com Stats plugin. And you see you’re getting one, maybe two, maybe three hits a day. Whiskey, Tango, Foxtrot?

Turns out that the Wordpress.com stats plugin registers pages that call the wp_footer() function. So if you don’t call wp_footer in your code, it’s not going to work. The function that the 2.5 default templates use is get_footer(). If you go into plugins, stats, and edit the only mention of wp_footer to get_footer, you’ll suddenly see hits start appearing. Or, just go to all your pages that you want to collect stats from, and add a call to the wp_footer() function before the get_footer() call.

Note: The wp_footer function either doesn’t get called, or the code won’t be placed in there if you’re logged in to your blog at the moment. It will only display for people who aren’t logged in.


Related:

No comments on ' Wordpress’ own Stats Plugin Not Compliant with 2.5 '

  1. No comments yet.

Leave a comment

name (req'd)

email (req'd)

website