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
Perishable – October 28, 2007 •
New version of BlogStats PCC now available! Check out this post to read the announcement, or simply scroll up to the download portion of this page to grab yourself a fresh copy. The new version is numbered
2.3.0a, and is compatible with all versions of WordPress (1.5 – 2.3).JJ – October 29, 2007 •
Hi,
I just downloaded your plugin … nice work!!
However, I discovered a bug:
poststats()counts not only posts but pages too. Simply addANDpost_type='post'to the query. I haven’t tested the other functions.Furthermore I would prefer
poststatsto return the number only… thus I may use it more flexible.Again, thanks a lot for the great work!!
Cheers,
jj
Perishable – October 30, 2007 •
JJ,
Yes, thanks for the feedback! A similar issue was resolved awhile ago for the “latest-post” function (
recpost()) using the same trick: addingANDpost_type='post'to the database query (see comments #63-70 for the full story). There are even alternate versions of functions buried in the latest release of the plugin (v0.88) that were used for testing (look forrecpageless()andrec_pageless()). In any case, we appreciate the heads up and thank you for helping to improve the BlogStats PCC plugin ;)Regards,
Jeff
trademark registration – November 13, 2007 •
Just downloaded the plugin and installed it on one of my personal blogs, and it’s fantastic! Thanks so much for this. =)
Muzica Noua – November 25, 2007 •
i have tested it ! it’s great ! thank you man !
tnchick – December 21, 2007 •
thank you for the simple and easy to use plugin!
Perishable – December 23, 2007 •
You are most welcome, tnchick — thanks for the feedback :)
Hostorials – January 2, 2008 •
Hi,
I am using this plugin to display the entire set.
I copied the code above you mentioned and pasted it on my static page for sitestats in the code section of the edit page.
However, no stats is displayed.
I am using wp 2.2.2
Thanks for any help
Perishable – January 2, 2008 •
Hostorials,
When you say, “code section of the edit page,” are you referring to the WordPress Admin panel found at Manage » Pages » Edit Page? If so, that is the problem — unless you have a plugin that enables WordPress to process PHP in post content, placing the function call in this way will not work. You will need to create a template page for stats and then edit it directly with the same code.
Regards,
Jeff
Hostorials – January 4, 2008 •
Jeff…
Thank you. It’s working now.
Perishable – January 5, 2008 •
Excellent — glad to hear you got it working :)
Muzica – January 25, 2008 •
i’m tested it and i’m glad that worked for me…
thanks again