WordPress.com Stats Stopped Working

Wed, Aug 6, 2008

PHP, WordPress, Wordpress Themes

I recently integrated a blog and documentation base into the Tribulant.com website and noticed after a few days that my WordPress.com stats stopped working completely after switching the theme.

I’ve been puzzled about this for a few days now and managed to figure out that, out of idiocy, I completely forgot to call the wp_footer function in the footer.php file of my custom theme. If you recently changed your WordPress theme and noticed that your stats stopped working, ensure that the wp_footer function is called in your footer file, just before the BODY tag. See the example below :

<?php wp_footer(); ?>
</body>

Best of luck!

, , , , ,

This post was written by:

Antonie Potgieter - who has written 57 posts on Lost-In-Code.

I (Antonie Potgieter) am a software engineer/web developer located in South Africa. My full-time work is the management of Tribulant Software and the development of its software packages.

Contact the author

4 Comments For This Post

  1. Leon Says:

    Awesome. Dankie.

    This tip fixed my borked stats counter.

  2. Bukisa Review Says:

    Yep, the footer is a very important in the creation in wordpress themes, particularly if you want your stats to show.

  3. John Says:

    Antonie thanks for this beneficial and important tip.

    Cheers!
    -John

  4. David Hood Says:

    Its works thanks for the information; we where having the same issue awhile back.

Leave a Reply