Save 10% on our Pro WordPress plugins with discount code: 10PERCENT
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 = Web Developer. Book Author. Secretly Important.
USP Pro: Unlimited front-end forms for user-submitted posts and more.

110 responses to “BlogStats PCC Plugin”

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

  2. 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. Abhimanyu Chirimar 2006/11/02 12:17 pm

    Hello,
    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. 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. 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. Matt,
    I just checked your stats page — it looks like everything is working now..? If not, let me know — otherwise, congrats!

  7. 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. Perishable 2007/02/19 8:33 am

    Lorelle,
    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.
    Cheers,
    Jeff

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

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

    Norm,

    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.

    Regards,
    Jeff

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

  12. 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.
Welcome
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 »
USP Pro: Unlimited front-end forms for user-submitted posts and more.
Thoughts
Working on a new book :)
LinkedIn decided to replace my highly rated video course on WP security. For a limited time the course is still available to *logged-in* users via direct URL.
I enjoy listening to original Star Trek and NG episodes while working online. After a while it feels like I’m working on the ship as part of the crew, going on adventures.
New version (2.6) of my shapeSpace starter theme now available! Always free & open source for everyone :)
Finished updating all of my books! As always, book owners can download the latest versions for FREE :)
W3C.org has a very thorough list of accessibility tools.
The more you wake up, the more you realize you are still asleep.
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.