Update (2012/11/08): BlogStats PCC has been rebuilt with all new features and options. Check out Simple Blog Stats for all the action! </update>
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, and completely free.
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
- Unzip blogstats-pcc.zip and copy blogstats-pcc.php to your plugins directory.
- Upload and activate via WordPress plugin admin panel.
- Add any of the following calls to wherever you would like the information displayed:
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(); } ?>
Download the Latest Version
WP Plugin - BlogStats PCC - version 2.3.1 - 4KB ZIP
110 Responses
Josh – March 20, 2009 •
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!
Jeff Starr – March 22, 2009 •
@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!
Josh – July 9, 2009 •
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.Trinidad Classifieds – August 26, 2009 •
Hi, great plugin! Do you have a demo of it on a page somewhere?
Thanks!
Trinifieds
Jeff Starr – August 26, 2009 •
@Trinidad: Yep: http://perishablepress.com/press/dungeon/
Scroll down to the second subheading to see the plugin in action.
Trinidad Classifieds – August 26, 2009 •
Thanks! Looks wonderful..
aimar – April 6, 2010 •
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 :)
Jeff Starr – April 7, 2010 •
Hi aimar,
I fixed this and updated the plugin. You may download the new version (2.3.1) using the official download link.
antonio – July 15, 2010 •
i have wordpress 3.0 and this plug in says i have 35 published post when i only have 18
Jeff Starr – July 20, 2010 •
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.
Fask – March 21, 2011 •
Hello Jeff, (sorry for my english) i exclude one or more categories to “function catstats” ? it’s possibile ?
Jeff Starr – March 26, 2011 •
Hey Fask, send me an email and I’ll try to help. Thanks.