Displays in a Widget your most visited Posts. It also works with Pages, and Custom Post Types.
The plugin saves the view data into the postmeta table in your WordPress database, under "pop_post_views" meta key.
You can use the function "pop_get_popular_posts($num,$type,$order)", where $num is the number of posts you want (default: 5), $type is the post type (default: post), and $order can be "DESC" for a descendant list, or "ASC" for an ascendant list. This function returns an Array of WP_Post Objects, not a list.
With the WP_Post Objects, you can use the usual WordPress functions to retrieve information about the Post.
Of course you can. You can set one Widget for Posts, another one for Pages, and many as you want for Custom Post Types, for example.
Requires: 3.5 or higher
Compatible up to: 3.5.2
Last Updated: 3 years ago
Active Installs: 200+
Got something to say? Need help?