BlogStats PCC Plugin
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
- Copy
blogstats-pcc.php
to/wp-content/plugins/
- Upload and activate via WordPress plugin admin panel
- 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.
110 responses to “BlogStats PCC Plugin”
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!
@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!
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.Hi, great plugin! Do you have a demo of it on a page somewhere?
Thanks!
Trinifieds
@Trinidad: Yep: https://perishablepress.com/dungeon/
Scroll down to the second subheading to see the plugin in action.
Thanks! Looks wonderful..
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 :)
Hi aimar,
I fixed this and updated the plugin. You may download the new version (2.3.1) using the official download link.
i have wordpress 3.0 and this plug in says i have 35 published post when i only have 18
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.
Hello Jeff, (sorry for my english) i exclude one or more categories to “function catstats” ? it’s possibile ?
Hey Fask, send me an email and I’ll try to help. Thanks.