Fall Sale! Code FALL2024 takes 25% OFF our Pro Plugins & Books »
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 »

About the Author
Jeff Starr = Web Developer. Book Author. Secretly Important.
GA Pro: Add Google Analytics to WordPress like a pro.

110 responses to “BlogStats PCC Plugin”

  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?

    Thanks!

  2. Jeff Starr 2009/03/22 8:42 am

    @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 2009/08/26 10:09 am

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

    Thanks!
    Trinifieds

  5. @Trinidad: Yep: https://perishablepress.com/dungeon/

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

  6. Trinidad Classifieds 2009/08/26 10:46 am

    Thanks! Looks wonderful..

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

    ..and wordpress 2.9.2

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

  8. 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 2010/07/20 3:15 pm

    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. Hey Fask, send me an email and I’ll try to help. Thanks.

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
I disabled AI in Google search results. It was making me lazy.
Went out walking today and soaked up some sunshine. It felt good.
I have an original box/packaging for 2010 iMac if anyone wants it free let me know.
Always ask AI to cite its sources. Also: “The Web” is not a valid answer.
All free plugins updated and ready for WP 6.6 dropping next week. Pro plugin updates in the works also complete :)
99% of video thumbnail/previews are pure cringe. Goofy faces = Clickbait.
RIP ICQ
Newsletter
Get news, updates, deals & tips via email.
Email kept private. Easy unsubscribe anytime.