WP Post Stats

Simple post stats plugin. WP Post Stats enables you to display how many times a post/page had been viewed.

Feature:
1. Works on all modern browsers.
2. Work With all the cache plugins.
3. Widget available.
4. Simple configuration.
5. Exclude Bot Views option available
6. Most Viewed Template.
7. Display Options.

 

Download Plugin Here

wp post stats

Installation

To do a new installation of the plugin, please follow these steps

1. Download the zipped plugin file to your local machine.
2. Unzip the file.
3. Upload the `WP-Post-Stats` folder to the `/wp-content/plugins/` directory.
4. Activate the plugin through the ‘Plugins’ menu in WordPress.
5. Go to `WP-Admin -> Settings -> PostStats` to configure the plugin.

Usage

1. Open `wp-content/themes/<YOUR THEME NAME>/index.php`
2. You may place it in archive.php, single.php, post.php or page.php also.
3. Find: `<?php while (have_posts()) : the_post(); ?>`
4. Add Anywhere Below It (The Place You Want The Views To Show): `<?php if(function_exists(‘the_views’)) { the_views(); } ?>`

Frequently Asked Questions

How To View Stats With Widgets?
Go to `WP-Admin -> Appearance -> Widgets`
The widget name is Views.

How To View Stats (Outside WP Loop)

To Display Least Viewed Posts
Use:

< ?php if (function_exists('get_least_viewed')): ?>
	<ul>
		< ?php get_least_viewed(); ?>
	</ul>
< ?php endif; ?>

The first value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
The second value you pass in is the maximum number of post you want to get.
Default: get_least_viewed(‘both’, 10);

To Display Most Viewed Posts
Use:

< ?php if (function_exists('get_most_viewed')): ?>
	<ul>
		< ?php get_most_viewed(); ?>
	</ul>
< ?php endif; ?>

The first value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
The second value you pass in is the maximum number of post you want to get.
Default: get_most_viewed(‘both’, 10);

To Display Least Viewed Posts By Tag
Use:

< ?php if (function_exists('get_least_viewed_tag')): ?>
	<ul>
		< ?php get_least_viewed_tag(); ?>
	</ul>
< ?php endif; ?>

The first value you pass in is the tag id.
The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
The third value you pass in is the maximum number of post you want to get.
Default: get_least_viewed_tag(1, ‘both’, 10);

To Display Most Viewed Posts By Tag
Use:

< ?php if (function_exists('get_most_viewed_tag')): ?>
	<ul>
		< ?php get_most_viewed_tag(); ?>
	</ul>
< ?php endif; ?>

The first value you pass in is the tag id.
The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
The third value you pass in is the maximum number of post you want to get.
Default: get_most_viewed_tag(1, ‘both’, 10);

To Display Least Viewed Posts For A Category
Use:

< ?php if (function_exists('get_least_viewed_category')): ?>
	<ul>
		< ?php get_least_viewed_category(); ?>
	</ul>
< ?php endif; ?>

The first value you pass in is the category id.
The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
The third value you pass in is the maximum number of post you want to get.
Default: get_least_viewed_category(1, ‘both’, 10);

To Display Most Viewed Posts For A Category
Use:

< ?php if (function_exists('get_most_viewed_category')): ?>
	<ul>
		< ?php get_most_viewed_category(); ?>
	</ul>
< ?php endif; ?>

The first value you pass in is the category id.
The second value you pass in is what you want to get, ‘post’, ‘page’ or ‘both’.
The third value you pass in is the maximum number of post you want to get.
Default: get_most_viewed_category(1, ‘both’, 10);

To Sort Most/Least Viewed Posts
You can use: `< ?php query_posts('v_sortby=views&v_orderby=desc') ?>`
Or pass in the variables to the URL: `http://yoursite.com/?v_sortby=views&v_orderby=desc`
You can replace desc with asc if you want the least viewed posts.

Comments

  1. Jessica McDaniel says

    To fix it, go into your FTP files (wherever your website is hosted) and delete the WP-Post-Stats folder under plugins.

  2. Udi says

    How can I configure this plugin so it won’t reset the post view count if I had to modify the post?
    Right now, if I need to modify a post the counter starts from zero again.

    thanks,

  3. Vencezo says

    DUDE… YOUR WIDGET JUST CRASHED MY SITE!

    Fatal error: Call to undefined function screen_icon() in /home/content/……/wp-content/plugins/wp-post-stats/post-stats-options.php on line 148

    I CAN’T EVEN GET INTO THE ADMINISTRATOR PANEL TO FIX IT… WTF

    Could someone explain to me what I need to do to fix this!!!

Leave a Reply

Your email address will not be published. Required fields are marked *