Latest TweetsOfficial Resources for #Gutenberg Block Editor:… #WordPress
Perishable Press

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 = Fullstack Developer. Book Author. Teacher. Human Being.
110 responses
  1. When displaying the last update, it goes by the publish date. However, if you published something for a future date, it won’t go by that date when that date arrives, it still goes by the date you initially published (scheduled) it. Any workaround for this?


  2. Jeff Starr

    @Josh: That will take some looking into.. Assuming the time records are distinguishable and accessible, it should be possible. I’ll see what I can do!

  3. Is there a way to exclude a specific category from the total posts count? I tried using AND post_category != '1' but it didn’t work.

  4. Trinidad Classifieds August 26, 2009 @ 10:09 am

    Hi, great plugin! Do you have a demo of it on a page somewhere?


  5. Jeff Starr

    @Trinidad: Yep:

    Scroll down to the second subheading to see the plugin in action.

  6. Trinidad Classifieds August 26, 2009 @ 10:46 am

    Thanks! Looks wonderful..

  7. I have problem displaying categories… shows empty with function blogstats()

    ..and wordpress 2.9.2

    ..but in other functions like fullstats() and catstats() it works :)

  8. Jeff Starr

    Hi aimar,

    I fixed this and updated the plugin. You may download the new version (2.3.1) using the official download link.

  9. i have wordpress 3.0 and this plug in says i have 35 published post when i only have 18

  10. Jeff Starr

    Hi antonio, I haven’t tested the plugin on recent versions of WordPress, including 3.0, so it’s probably incompatible (at least for that aspect of its functionality). I am thinking that the over-count is due to post drafts, which will need excluded during the next plugin update.

  11. Hello Jeff, (sorry for my english) i exclude one or more categories to “function catstats” ? it’s possibile ?

  12. Jeff Starr

    Hey Fask, send me an email and I’ll try to help. Thanks.

[ Comments are closed for this post ]