Retrieve the most viewed posts list in a custom period of time
| Author: | (profile at wordpress.org) |
| WordPress version required: | 2.7 |
| WordPress version tested: | 2.7.1 |
| Plugin version: | 1.2 |
| Added to WordPress repository: | 17-03-2009 |
| Last updated: | 22-02-2010
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | http://www.kifulab.net/wordpress-plugins/kf-m... |
| Total downloads: | 5 134 |
| Active installs: | 10+ |
![]() Click to start download |
|
This plugin provides a function to register/output/return a list of the most viewed posts.
Usage
You can use the function kf_get_posts_by_hits() anywhere in the template.
Examples:
Most read
<!-- Return mode (no output), retrieve the 5 most read posts in 31 days -->
<?php
$my_posts = kf_get_posts_by_hits(31,5);
// .. do some magic with $my_posts
?>
