Save 25% on Wizard’s SQL for WP w/ code: WIZARDSQL
Web Dev + WordPress + Security

BlogStats PCC Plugin

[ BlogStats PCC ] Announcing the BlogStats PCC plugin for WordPress! BlogStats PCC is the easy way to display the total number of posts, comments, categories, as well as several other great statistics for your WordPress-powered website. With BlogStats PCC, you display only the information you want, where you want — inside or outside of the WordPress loop. Completely customizable, BlogStats PCC will display any combination of statistics you choose. This plugin is highly flexible, simple to use, open source, and completely free.

Update: BlogStats PCC has been rebuilt with all new features and options. Check out Simple Blog Stats for all the action! </update>

BlogStats PCC update

New version of BlogStats PCC now available! The new version now provides all of these great site statistics:

  • Total number of posts
  • Total number of comments
  • Total number of categories
  • Total number of members
  • Total number of guests
  • Total number of pages
  • Date of most recent update
  • Most recent commentator
  • Most recent post

Display any or all of the provided site statistics — customize your own set to provide only the statistics you want!

Installation and Usage

  1. Copy blogstats-pcc.php to /wp-content/plugins/
  2. Upload and activate via WordPress plugin admin panel
  3. Use the following tags to display your stats anywhere:
Display the entire set of statistics in a nice list format:
<?php if (function_exists('fullstats')) { fullstats(); } ?>

Display the total number of posts, comments, and categories:
<?php if (function_exists('blogstats')) { blogstats(); } ?>

Display the total number of posts:
<?php if (function_exists('poststats')) { poststats(); } ?>

Display the total number of comments:
<?php if (function_exists('commstats')) { commstats(); } ?>

Display the total number of categories:
<?php if (function_exists('catstats')) { catstats(); } ?>

Display the total number of registered users:
<?php if (function_exists('regusers')) { regusers(); } ?>

Display the total number of unregistered users:
<?php if (function_exists('userstats')) { userstats(); } ?>

Display the total number of individual, static pages:
<?php if (function_exists('pagestats')) { pagestats(); } ?>

Display the date of the most recent post modification:
<?php if (function_exists('modstats')) { modstats(); } ?>

Display a link to the most recently published blog post:
<?php if (function_exists('recpost')) { recpost(); } ?>

Display the name of the most recent commentator as a link:
<?php if (function_exists('reccomm')) { reccomm(); } ?>

Display the date of the last update in your blog's default date format:
<?php if (function_exists('recstats')) { recstats(); } ?>
Check it out: Simple Blog Stats »

Jeff Starr
About the Author
Jeff Starr = Creative thinker. Passionate about free and open Web.
Digging Into WordPress: Take your WordPress skills to the next level.

110 responses to “BlogStats PCC Plugin”

  1. Thank you SO much for making this so simple and customizeable. Very appreciated.

  2. Avatar photo

    Thanks for the suggestion…I’ll try a clean install and get back to you..sory about posting all that code. Shoulda known better.

  3. Avatar photo
    Abhimanyu Chirimar 2006/11/02 12:17 pm

    Great plugin.
    I would like to use this in WordPressMU.

    And, in any case, I would like to get total posts in each category and list like

    Category1 – 45
    Category2 – 30

    and be able to control some stuff like which categorys info to get and display only the post count.

    Is that doable? Thank you.

  4. Avatar photo
    Perishable 2006/11/04 9:39 pm

    Abhimanyu Chirimar,
    Let me look into it.. I have not yet worked with WPMU, so that may prove interesting. The individual category stats should not be difficult, however I am a little confused about the second part of your request. Would you mind clarifying a bit?

  5. Avatar photo

    What is the best way to add this to it’s own “stats” page? My photoblog theme doesn’t use a sidebar. I’ve tried creating a standalone stats.php with the fullstats in it, but get a php error.

  6. Avatar photo

    I just checked your stats page — it looks like everything is working now..? If not, let me know — otherwise, congrats!

  7. Avatar photo

    Could you please feature documentation and instructions on usage and Plugin template tag options on your site instead of just within the Plugin or in the comments here? It would really help people understand how this works and how to make it do what they want. Thanks.

  8. Avatar photo
    Perishable 2007/02/19 8:33 am

    Thank you for pointing this out. We had posted installation and usage documentation for our other plugins, but somehow forgot to include the information for BlogStats PCC. We now have fixed this oversight and have posted complete documentation for BlogStats PCC. We apologize for any frustration caused by our apparent lack of concern. Thank you for helping to improve the quality of our humble website.

  9. Avatar photo

    Works great! I have one question though, is there any way to change the format of the date? Thanks!

  10. Avatar photo
    Perishable 2007/02/20 9:25 am


    Customizing the date format for the most recent blog update was previously very tedious and not very user friendly. So, we have added a new function to the BlogStats PCC plugin that will simplify the process.

    First, download and install the new version (2.0.0). Then use this function instead of the previous one:

    <?php if (function_exists('recstats')) { recstats(); } ?>

    This function should output the last-update information according to the default date and time settings of your blog (under Options in the WP Admin). If that date works for you, then great — you are good to go. Otherwise, scroll through the file and locate the function itself. There, you will find comments concerning customization of the date and time format.


  11. Avatar photo

    Thanks very much, appreciate the amazingly fast response! Nice, simple & clean plugin.

  12. Avatar photo

    It is our pleasure to help! We are glad that BlogStats PCC is working well for you. Thank you for the kind remarks. Cheers!

Comments are closed for this post. Something to add? Let me know.
Perishable Press is operated by Jeff Starr, a professional web developer and book author with two decades of experience. Here you will find posts about web development, WordPress, security, and more »
Blackhole Pro: Trap bad bots in a virtual black hole.
Plugin updates! All of our free and pro plugins ready for WordPress 6.2.
Daylight savings is a complete waste of time and needs to be eliminated.
Got a couple of snow days here in mid-March. Fortunately it's not sticking.
I handle all email in real time as it comes in, perpetually clear inbox for years now.
Added some nice features to Wutsearch search engine launchpad. Now 21 engines!
.wp TLD plz :)
Nice collection of free SEO APIs and user-agent lookups for Googlebot, Bingbot, Applebot, YandexBot, and more.
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.