CountPosts is plugin for WordPress Blog. It's very easy to install and use.
This plugin count visits on your blog, but not when u are log-in as admin. Also count visits for every post separated, and u know in every moment how many people read your posts. U can see what is the most read post in your blog. Also when u read your posts, CountPost won't count your visits.
CountPost make u list of the most read post, with hits for every post separated.
- Add CountPost.php in Plugin folder
- In Plugins section, click on the activate button for CountPost plugin
-
Add
Code (php)
-
<?php HitThisPost(�Hits for this post:�, �); ?>;
in index.php or single.php (It depending of your Theme you using) somewhere before comments or where ever you like. First and second attribute can be changed.
4) Add
Code (php)
- <?php mainCounter(�Visits: : �, � .�); ?>
in sidebar.php First attribute is print before visits number, and second is after visits number
5) Add
Code (php)
- <?php TopHitsList(); ?>
somewhere when u want to show top list of read posts.
Using TopHitsList(); function
Code (php)
-
<?php function TopHitsList($beforeRead = � (�, $afterRead = � ).�, $top = 5, $beforeAll = �
�, $beforeLink =�- �,
-
$afterLink = �
�);
Code (php)
-
<?php
-
function TopHitsList($beforeRead = � (�, $afterRead = � ).�, $top = 5, $beforeAll = �
�, $beforeLink =�- �,$afterLink = �
�);
- /*$beforeAll - print before all.
- $afterAll - print after all.
- $beforeLink - print before post link.
- $beforeRead - print after post link and before hits.
- $afterRead - print after hits.
- $afterLink - print after $afterRead*/
- ?>