开发者 |
JuanJedi
codigonexo |
---|---|
更新时间 | 2013年4月22日 19:20 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 3.5.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/
directory.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.