WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

Recent Post Views

Displays the most recent posts in a widget, how many times they have been viewed over last (n) days, and images for popularity.

How do I use the shortcode?

The basic format is [recentpostviews], which will by default show a list of the top 7 posts, from all categories, over the last 2 days. Options are "cat", "posts" and "days". * "cat" is the category ID. * "posts" is the number of posts you want to display. * "days" is the number of days back you want the shortcode to query, as in "over the last (n) days."

Example: [recentpostviews cat="5" posts="10" days="3"] *This would display the 10 most recent posts from category 5 over the last 3 days.

If you're not getting any results for the shortcode, try changing the number of days.

By default, the "hotlevel" for posts is 75% or .75 in the shortcode. E.g., a post will not show up as "hot" unless it is greater than or equal to the post with the most number of views over the same time frame.

How can I change options, like what is considered a "recent" post?

Just add the widget and select your options.

I have multiple widgets, and some of them have posts that are viewed the same number of times, but one is not a "hot" post. What gives?

Whether a post is hot or not is dependent on the max number of views for any post over the timeframe you have selected. E.g., if you have a widget based on the last 3 days and one based on the last 7, the level for a "hot" post will be different. I'm planning on changing this in a future update, such that the max number of posts for a particular category will be calculated.

The number of views for my posts are not updating, why?

I actually had this issue myself, and discovered that it's because the postmeta table was not updating the number of views. As a temporary solution, I installed the WP-PostViews plugin (at http://wordpress.org/extend/plugins/wp-postviews/) and enabled the option in the settings menu that said to register views from everyone, not just guests. Thanks to GamerZ for a great plugin, and for helping to fix this issue. If you're having this problem, I suggest that recent-post-views should be used in conjunction with WP-PostViews.

Requires: 2.8.0 or higher
Compatible up to: 3.3.3
Last Updated: 2012-5-30
Downloads: 5,234

Ratings

3 stars
3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,2,2 100,1,1 100,1,1 100,1,1 50,2,1
100,1,1