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
rasheed – August 29, 2006 •
wow
i like the design of the comments section.
looks cool.
can i use it in my blog ? how can i edit it in my blog ?
and thanks for the plugin.
Nyssa – August 29, 2006 •
Nice, works like a charm, thank you :)
Perishable – August 29, 2006 •
It is my pleasure — thank you both for the positive feedback!
airedge – September 8, 2006 •
How can I let it work in my blog ?
I have actived it in my “Plugin” panel,how to display it in my index page ? Thank you !
Perishable – September 9, 2006 •
airedge,
Open the plugin with a text editor and follow the "Installation and Use" instructions. Simply include any of the provided
phptags anywhere within thebodyof your pages. That’s all there is to it!airedge – September 10, 2006 •
Thank you very much perishable!!!
I have made it !
Chico – September 21, 2006 •
Thank you for this simple but sweet little plugin!
Much appreciated!
“Long live open-source”
Nikolay – September 21, 2006 •
thanks. It’s really easy. :)
Perishable – September 22, 2006 •
Thank you all for the positive feedback — your comments are greatly appreciated and inspire us to continue contributing code and content to the open-source WordPress community. Cheers!
bulletz – September 24, 2006 •
Maybe I don’t get it. I am new to PHP. I am wondering if this is a plugin that I can use only on the ADMIN page and if not, how do I get it to be on one of the pages that I have named STATS?
Perishable – September 25, 2006 •
bulletz,
To add BlogStats PCC functionality to your Admin Dashboard, open the
wp-admin/index.phpfile and locate this code:<div id="zeitgeist">
<h2><?php _e('Latest Activity'); ?></h2>
Immediately after that code, add the following:
<h3><?php _e('Statistical Overview'); ?></h3>
<?php fullstats(); ?>
Upload the
wp-admin/index.phpfile to your server and you should be good to go.Now, to add the same statistical information to the blog itself, simply add this code to the location at which you would like to display your blog’s statistics:
<?php fullstats(); ?>
Finally, please keep in mind that if you open the BlogStats PCC file itself (say, with a simple text editor), you will find there are many ways to customize your statistics.
Cheers!
Peter T – September 28, 2006 •
I was able to put the snippet of code into the wp-admin/index.php page to get stats to appear there, but i still don’t get how to make the stats appear on the blog itself. What file specifically am I looking for if I want to get the stats on the main page of the blog?
Thank!